Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

There have been a lot of edits up for review recently that consist of just adding the syntax highlighting tags to code snippets.

Is the general consensus that this would be considered 'too minor' and therefore rejected, or is it seen as a good edit to make snippets language-specific for syntax highlighting. I am on the fence as to whether to accept these edits or not.

share|improve this question
The [css] tag, among others, is in desperate need of them. – BoltClock's a Unicorn Jul 22 '12 at 1:46
I asked this question a while ago. – Keith Thompson Jul 22 '12 at 8:30
up vote 3 down vote accepted

You should check whether the original question is tagged correctly. The tag will provide the hint for the syntax highlighting to work. There are some cases where the tag is there, but the syntax highlighting is incorrect - in which case manual language hint is necessary.

Make sure not to approve any edit that is including the language hint where redundant (the code is highlighted correctly in the first place). You can also reject edits where re-tagging is the better choice. Personally, I only mark the edit as helpful if the syntax highlighting cannot be improved by retagging.

Check whether there is anything else that can be improved, other than syntax highlighting. Usually there are things such as salutations, grammar errors, punctuations, capitalization that can be improved.

As a tip, you can always open the original question and look at the syntax highlighting, and hit the improve button to see how the syntax highlighting changes with the edit to compare.

share|improve this answer
+1 for the first two paragraphs, basically. – BoltClock's a Unicorn Jul 22 '12 at 7:42
Do you need a certain amount of reputation to see the "improve" button? Does it only appear within the controls for reviewing edits? – codewaggle Jul 22 '12 at 10:28
If you can review edit, you should be able to see the improve button. – nhahtdh Jul 22 '12 at 10:29
That's why I couldn't find it, thanks. – codewaggle Jul 22 '12 at 10:33

When reviewing I personally would not reject it if there truly was nothing else to correct. But I don't think it should be the only thing you change if the post has other issues. In that case I would either go for a "too minor" vote, or make the required changes myself, removing the "helpful" checkmark.

share|improve this answer

Proper formatting of code blocks and correct syntax highlighting can improve a question immensely, so YES you should accept those edits - especially if it requires the use of a language hint to correctly identify the syntax highlighting to use.

share|improve this answer
Totally agree with you ! – Jean-Rémy Revy Jul 30 '12 at 10:39

You must log in to answer this question.

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