Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [syntax-highlighting]

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

10
votes
1answer
164 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 ...
8
votes
0answers
100 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
1answer
95 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 ...
3
votes
1answer
45 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 ...
12
votes
1answer
299 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 ...
23
votes
0answers
166 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
1answer
6k 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
2answers
129 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 ...
12
votes
2answers
146 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
401 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
4answers
203 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 ...