11

R is listed as one of the supported list of languages; available as <!-- language: lang-r -->. In general, new scripting languages won't be implemented by StackExchange directly. However, there is hope... The following is taken verbatim from What is syntax highlighting and how does it work?: How does it work? Stack Exchange does not have its own syntax ...


10

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


10

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


8

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 #...


8

@ ("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\...


7

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 ...


7

Update This has been fixed in the apps for a while now. There's no highlighting on mobile web because that's not a feature anywhere on the network. Here's the feature request on MSE. Look at the beautiful red color of 12pt in the iPhone app. We're doing something! The problem with the problem with the mobile apps is that the web has a concept of site ...


6

Not a bug: a feature :-) The code was marked up not using Markdown (4 space indent) but using <pre> tags. That turns off the automatic syntax highlighting: I've edited and all should be fine now.


6

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.


5

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 \...


5

\documentclass{article} \begin{document} Syntax highlighting? \relax \begin{tabular}[t]{ccc} a&b\\ \end{tabular} \end{document} \documentclass{article} \begin{document} Syntax highlighting? \relax \begin{tabular}[t]{ccc} a&b\\ \end{tabular} \end{document} You can force syntax highlighting by prefixing the block with <!-- ...


4

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


2

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 ...


1

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