We have a lot of code here. I think everyone agree that we need syntax highlighting.

EDIT: Support this feature request on MSO

2 Answers 2


Yes, there should be syntax highlighting for any code-related posts...

I'll use the rest of this answer as a CW sandbox... (Haven't fount the meta.SO counterpart yet)
Feel free to improve examples with more syntax, add other languages or correct mistakes, etc.

Testing code removed, syntax highlighting does not work on meta.

  • you successfully argue against your own answer here, these length code snippets are easily readable. anything longer probably means the question actually belongs somewhere else. code highlighting would promote more noise here that should be on so or codereview.
    – user7519
    Commented Jul 15, 2012 at 9:33
  • @JarrodRoberson: This meta question is status-completed, see this example post. Commented Jul 15, 2012 at 11:22
  • that isn't my point, my point is I don't think your arguments were successful, and I disagree as well, the stackexchange guys take away just as quickly as they give so you never know. :-)
    – user7519
    Commented Jul 15, 2012 at 11:24
  • @JarrodRoberson: This question has gained enough upvotes, so the opposite will probably not happen. Furthermore, these were not arguments. I think you need to read my answer again, but that would be a waste of time if you're planning on getting the opposite to happen... Commented Jul 15, 2012 at 11:31

No, simply because we aren't here for fixing code. There aren't that many examples of code being used, with most questions being text.

  • 2
    I agree, but I think we will have much more code. Are there any problem if implement this feature here? SO has a syntax highlighter, not an advanced one, but it has, I think SE team could bring to us easily otherwise I agree to leave this feature out.
    – Maniero
    Commented Sep 24, 2010 at 0:41
  • 1
    Syntax highlighting for code blocks is already implemented and heavily in use on SO. "Implementation" should be as simple as changing a single config variable.
    – Roger Pate
    Commented Sep 25, 2010 at 2:57
  • @bigown @Roger Sorry, I completely forgot.
    – TheLQ
    Commented Sep 25, 2010 at 4:20
  • This is a programmer area, and sometimes, code is the best way to express something related to, hum, code. I voted this up. Commented Jan 3, 2012 at 23:34

You must log in to answer this question.

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