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
30
votes
1answer
10k 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?
11
votes
4answers
209 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 ...
13
votes
7answers
243 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" ...
12
votes
2answers
155 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
3answers
441 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....
23
votes
0answers
183 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.
14
votes
1answer
379 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 ...
12
votes
3answers
199 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. ...