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

EDIT: Support this feature request on MSO


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 Jul 15 '12 at 9:33
  • @JarrodRoberson: This meta question is status-completed, see this example post. – Tamara Wijsman Jul 15 '12 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 Jul 15 '12 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... – Tamara Wijsman Jul 15 '12 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 Sep 24 '10 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 Sep 25 '10 at 2:57
  • @bigown @Roger Sorry, I completely forgot. – TheLQ Sep 25 '10 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. – Christopher Mahan Jan 3 '12 at 23:34

You must log in to answer this question.

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