Questions tagged [syntax-highlighting]

The {syntax-highlighting} tag is for issues with the syntax-highlighting of *TeX or other types of code.

Filter by
Sorted by
Tagged with
4 votes
1 answer
51 views

Problem writing the sequence \@ in inline <code>...</code>-blocks

When typing answers in an edit-box of the TeX-LaTeX-StackExchange website, which is based on markdown, then from time to time I introduce control-sequence-tokens/sequences of inline-code not via ...
  • 26.1k
12 votes
3 answers
265 views

Adapting the highlighting colors for the new highlight.js version

Our syntax highlighter highlight.js has received a complete ground up rewrite of the LaTeX grammar in its latest 10.3 release. This comes with some changes to the CSS classes used by the highlighter. ...
  • 13.7k
13 votes
7 answers
328 views

Problems with highlight.js

Stack Exchange switched their syntax highlighting parser to highlight.js (announcement). This is a clear downgrade for TeX (for now). However, highlight.js is said to be "actively developed" ...
  • 13.7k
9 votes
1 answer
187 views

No (La)TeX syntax highlighting on mobile devices

Here is a view of a code block on the full site (viewed through mobile/iPhone): Here is a view of the same code block on the mobile site: Here is a view of the same code block using the Stack ...
  • 584k
7 votes
0 answers
116 views

Syntax highlighting for LaTeX3?

Two years ago, @YiannisLazarides asked if Color coding of LaTeX3 code could be added to the syntax highlighter of TeX.SE. With posts using LaTeX3 code becoming be more and more frequent I would like ...
9 votes
1 answer
109 views

Is R syntax highlighting possible on TeX.SX?

I know it is possible to use <!-- language: X --> to get different syntax highlighting in posts for at least some languages, X. For example, this works for LuaLaTeX. It, however, does not seem ...
  • 12.3k
3 votes
1 answer
47 views

Syntax highlighting not working on a post

I went to Multipart nodes with multipart subparts — style issue and the questions syntax never colorized (if that is even a term to use). I then went to another post and the syntax there was fine. I ...
  • 18.3k
14 votes
1 answer
413 views

Syntax-highlighting for LuaLaTeX

Is there a syntax-highlighting for LuaLaTeX on this site? I think it would be necessary to color the Lua commands in the LaTeX code, because Lua is a integral part of (Lua)LaTeX. I think it would ...
  • 5,294
23 votes
0 answers
193 views

Color coding of LaTeX3 code

Is it possible for the JavaScript syntax highlighter to be extended to color code LaTeX3 code? With the current color coding scheme the code is very difficult to follow.
30 votes
1 answer
11k views

How do I mark code blocks?

How do I mark code blocks, and how do I adjust syntax highlighting? Can I emphasize pieces of my code block? And how do code blocks in lists and blockquotes work?
3 votes
2 answers
138 views

Colours in syntax highlighting

As mentioned in the comments to this answer on meta, Martin's improved syntax highlighting is installed now. Somehow it happened that not the most recent version got installed (or it didn't get ...
  • 37.1k
12 votes
2 answers
159 views

There is no syntax highlighting on Meta

I just posted, in Meta, a bug report about wrong syntax highlighting on the main site. However, my example code showing the wrong behavior is not very useful because there seems to be no syntax ...
5 votes
3 answers
450 views

Text immediate following double backslashes is highlighted as Macro inside a code block

I just saw this at Herbert answer to this question: if a code block contains \\ directly followed by a text then the syntax highlighting marks it as macro. This is quite irritating and should be fixed....
11 votes
4 answers
210 views

Preview treats # as comment

When one writes code in a question or answer, the live preview treats the # character as a comment. Compare with The first is screenshot taken while asking a new question. The second is a ...
  • 61.3k