On Super User syntax highlighting is turned off. But there are questions on Super User where syntax highlighting can be helpful. Therefore I suggest that syntax highlighting is made possible to enable via prettify language codes (but turned off by default).

Having this feature would mean that a prettify language code, which are certain types of HTML comments, has to be inserted in a post for it to syntax highlighted. For example to syntax highlight a lisp code block in a question the following would have to be inserted before the block:

<!-- language: lang-lisp -->

There are many questions on Super User that would benefit from syntax highlighting. Here are two examples of tags with many questions:

A similar request was made in http://meta.askubuntu.com/questions/2403/google-code-prettify-support-for-ask-ubuntu.

link
1  
Compared to how many posts don't really need it at all? If it's for a small portion or percentage of total posts, it's not a likely change that would be implemented – random Feb 3 at 19:49
2  
@random I suggest that it is turned off by default but possible to enable with prettify language codes which would leave every other post unaffected. – N.N. Feb 3 at 19:53
@random The bash tag is on the first page of popular tags and the emacs tag is on the third. – N.N. Feb 3 at 19:57
feedback

You must log in to answer this question.

Browse other questions tagged