There is (usually) no syntax highlighting inside braces [fixed in highlight.js 10.3] Sample: \foo{\foo\bar \\\\\baz} Github issue


Backslashes are not highlighted as part of the control sequence [fixed in highlight.js 10.3] Sample: \foo\bar \\\\\baz Github issue


Here's my own suggestion for how to change the colors. Notes and suggestions are very welcome (as well as other answers, of course). class current color proposed color ------------------------------------------ keyword #015692 #934301 built_in #b75501 #934301 params unstyled #523014 comment #656e77 #...


@ ("at") isn't recognized as a valid character in a command name [fixed in highlight.js 10.3] Many hundreds (thousands?) of LaTeX2 commands employ the @ character in their names -- usually after one issues an explicit or implicit \makeatletter directive. Consider the following example (taken from an old answer of mine): \makeatletter \renewcommand\...


Incorrect identification of scope of a macro definition [fixed in highlight.js 10.3 (no such identification takes place)] Consider the following example \newcommand\sorted[1]{\directlua{sorted(\luastringN{#1})}} Observe that the final three characters -- )}} -- aren't colored green even though they clearly belong to the scope of the argument of the \sorted ...


Very difficult to distinguish comments from ordinary text. Consider Hello World. % A comment. The shade of gray that's used to highlight what's a comment is quite dark, making it anything but straightforward to identify comments visually. Please reinstate the old scheme, which used a much lighter shade of gray to denote comments.


LaTeX3-semantics for valid macro names aren't recognized. [fixed in highlight.js 10.3] With LaTeX3, the characters _ (underscore) and : (colon) may be (in fact, must be) used in various macro names. Take the following code snippet: \seq_set_eq:NN \l__ralph_seq \l__alph_seq \seq_set_eq:NN \l__rAlph_seq \l__Alph_seq \seq_set_eq:NN \l__ralphAlph_seq \...


This answer follows the same principle as my first proposal, only with all colors brightened up a bit, as requested in the comments.


What I like about the highlighter I use daily (GtkSourceView) is that it colors the known control words differently from the unknown and user-defined control sequences. This makes it easier to skip over the standard things and focus your attention to the new command (which in many cases is the focus of the question as well). At the same time it gives a quick ...


Incorrect display of array or tabular parameters when there is @{} [fixed in highlight.js 10.3 (no such identification takes place)] \begin{array}{c@{}cc} a & b & c\\ d & e & f \end{array} \begin{tabular}{c@{}cc} a & b & c\\ d & e & f \end{tabular} In the above examples {c@{} is ...

Only top voted, non community-wiki answers of a minimum length are eligible