Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
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 ...


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


7

2 days ago syntax highlighting was turned on on Meta Stack Overflow so to be fair I think it should be turned on here as well.


6

It seems to me this behavior doesn't happen anymore. Entering \def\foo#1{xxx} on the main site gives me the following preview (zoomed in heavily): #1{xxx} isn't gray anymore, so I believe this question is "solved".


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.


5

Syntax highlighting is provided, when available (not all sites are enabled), by google-code-prettify, and is thus limited to the languages handled by this highlighter. I bumped into the problem myself recently when writing up a Fortran 95 code question on another SE. If you add the necessary code to do this highlighting to prettify, then the chances are that ...


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


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