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
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
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
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
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
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
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
7 votes
3 answers
359 views

The LaTeX3 syntax is not recognized by TeXstudio, and I'm looking for ways to solve it. The problem comes from (IMHO) the underscores being taken as "separators"... Here is an example: The ...
3isenHeim's user avatar
  • 2,127
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
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
2 votes
1 answer
212 views

Background Looking to apply syntax highlighting to source code snippets embedded within XHTML code elements, demarcated with a class attribute to indicate the language. Using: mtx-context | ...
Dave Jarvis's user avatar
  • 13.1k
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

15 30 50 per page
1
2 3 4 5
11