The formatting help page should include the information on the magic comment and language codes needed trigger correct syntax highlighting, prefaced by a brief summary of when the magic comment might be needed.

I was explicitly looking for this information when editing a post, was savvy enough to come and search on meta when I couldn't find it in the appropriate location, and I still did not find it on my own; it took someone else responding to my plea for help to show me where it was.


This was recently implemented (about two weeks ago).

On sites that have syntax highlighting enabled, the "magic comments" are now included in the formatting help page, as well as things like [tag:syntax] and (where applicable) LaTeX.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .