Skillmon
There seems to be a regression in the syntax highlighting of code blocks.
If I specify the language of the code block explicitly, the editor view highlights the code correctly, but the resulting post has no syntax highlighting for that block.
If I omit the language (and the default highlighting applies, whichever that might be) the code is highlighted both in the editor view as well as in the resulting post.
For instance the following code block uses `latex` as the specified language after the opening three forward quotes:
```latex
\documentclass{article}
\begin{document}
Hello world!
\end{document}
```
Top Answer
Jack Douglas
The default syntax highlighting language name on tex.ta is `stex`:
```stex
\documentclass{article}
\begin{document}
Hello world!
\end{document}
```
In the editor, the CodeMirror highlighter has aliases active such as `latex` and `tex` but these don't work in the markdown - even though [it's the same highlighting engine](https://topanswers.xyz/meta?q=988) it doesn't use the aliases in that context. Very likely fixable but I can't currently figure out how!