# Can we get prettier code markup?

It looks like all we have is preformatted text

int i = 0;
for (i = 0; i < 10; ++i)
{
....
}


Could we get prettier markup? maybe C++ syntax highlighting would be decent enough?

We'll surely have quite a bit of shader code (GLSL and HLSL), but probably lots of C++ and some other languages as well.

• It doesn't appear Prettify has [HG]LSL support (which is what StackOverflow uses). A pull request might be in order! As for highlighting on here, that's probably staffer thing. – Qix - MONICA WAS MISTREATED Aug 4 '15 at 18:34
• did this only get fixed in the meta? my posts in the main one don't have the better highlighting. – Alan Wolfe Aug 4 '15 at 21:30
• @AlanWolfe do your questions work on main now? If not could you link to an example? – trichoplax Aug 8 '15 at 11:58
• Doesn't seem to: computergraphics.stackexchange.com/questions/4/… – Alan Wolfe Aug 8 '15 at 14:08
• I've edited that question to have C++ syntax highlighting and it shows up now (at least in the preview - it should show up once someone accepts the edit). Unlike on Stack Overflow it doesn't have a language tag to trigger this automatically. – trichoplax Aug 10 '15 at 3:31
• I'm not sure what makes it work automatically in this meta question. Does the use of "C++" in the question wording affect it? – trichoplax Aug 10 '15 at 3:33