Following the meta post Can we get prettier code markup? syntax highlighting has been activated for our site. For example, if you want the code in your post to show up with C++ syntax highlighting, you simply include the following in your post:
<!-- language-all: lang-cplusplus -->
If you only want it to apply to the next code block (if you have more than one code block and want to use more than one language), just omit the
<!-- language: lang-cplusplus -->
This works for a wide range of languages, but not all, and notably not GLSL or HLSL, which are likely to be in frequent use on our site.
Looking at the language extension files for prettify.js (which Stack Exchange uses for syntax highlighting), most seem to be between 30 and 100 lines of code including extensive commenting, so writing one for GLSL or HLSL seems like it would be a reasonable task for someone familiar with the languages.
Would anyone be interested in doing this?
If so, indicating here will allow collaboration if we have more than one person interested, and we can link to work in progress.