Skip to main content

Questions tagged [syntax-highlighting]

For questions about highlighting document source code in your editor.

0 votes
0 answers
23 views

How can I configure Emacs/AUCTeX so that it treats tags like <%foo%> as template delimiters rather than the start of a LaTeX comment, for syntax highlighting? I am working with some third-party ...
quazgar's user avatar
  • 1,323
3 votes
2 answers
143 views

I have to use the following macros: \newcommand{\lbeq}[1]{\begin{equation}\label{#1}} \newcommand{\eeq}[1]{\end{equation}} I know this is bad style! Since I'm using TexStudio, there is the problem ...
Phillip Bachler's user avatar
4 votes
0 answers
147 views

Let's assume, I have nested parentheses like shown in the picture: I want to define a custom code style using the listings package and \lstdefinestyle command to highlight nested parentheses with ...
user2379123's user avatar
1 vote
1 answer
73 views

I would like to highlight inline code fragments in my document using a \colorbox like here https://stackoverflow.com/questions/4709339/latex-color-box-inline-with-text The problem is that much of the ...
Jim Parker's user avatar
2 votes
0 answers
44 views

Texmaker, my IDE of choice, has syntax highlighting that extends to some, but not all, math environments. As it happens to cover the most common environments, it is somewhat annoying when I decide to ...
Luke Johnson's user avatar
2 votes
0 answers
90 views

I'm trying to colorize the macrocode environment using the l3doc class. This isn't possible directly, but the ctxdoc class partially achieves this, and the njuthesis class along with the codehigh ...
Pablo González L's user avatar
3 votes
1 answer
330 views

Is there a way to enable the same syntax highlighting from a .tex file for a .tikz file? When the tikz code is written inside a latex-document the highlighting with the Latex-Workshop extensions works ...
binex6's user avatar
  • 420
0 votes
0 answers
49 views

I would like to customize syntax colouring by editing ~/.TeXworks/configuration/syntax-patterns.txt but the file is ignored by TeXworks, restart doesn't help. version: TeXworks 0.6.6 ("Debian&...
sebqas's user avatar
  • 101
1 vote
1 answer
57 views

Problem I am trying to colour brackets in listings using the \lst@ProcessOther command. My code works perfectly fine when using the breaklines=false option. When using breaklines=true however, \lst@...
koen's user avatar
  • 13
0 votes
1 answer
541 views

Using Pandoc to render PDF from a Markdown text file, I use highlighting code blocks to format a different type of text, like this: this is normal text ~~~~~~ this is special text ~~~~~~ The snippet ...
nightcod3r's user avatar
4 votes
1 answer
128 views

I am moving from TeXnicCenter to the TeXstudio and wondering, if there is a way, how to make a custom syntax color for units like (pt, in, mm, cm, ex, em) in TexStudio. TexnicCenter has option for ...
Joseph Hallenbeck's user avatar
1 vote
2 answers
213 views

I was surprised to discover that it is necessary to put \usepackage{xparse} in the preamble in order for syntax coloring to work for LaTeX3 macros in emacs -- or a package that loads xparse such as ...
sgmoye's user avatar
  • 9,488
0 votes
0 answers
139 views

I have an auxiliary .tex file with commands, packages and the like, which I reference with \input{...}. However, TeXstudio doesn't recognise the commands in that auxiliary file. A MWE can be made in ...
Sam OT's user avatar
  • 1,418
1 vote
1 answer
637 views

I want to start this post by telling that I already know the answer to the question. I just came here to post the solution I found so it hopefully helps someone without having to spend an hour ...
Allemand Instable's user avatar
10 votes
2 answers
2k views

I'm trying to switch my editor from vscodium (telemetry free VS Code) to Emacs. So far, I've installed AUCTeX and tried some things in a testdocument. For regular LaTeX code everything is fine. But ...
lukeflo's user avatar
  • 1,625

15 30 50 per page
1
2 3 4 5
11