The syntax highlighter has changed on all Stack Exchange sites: now it is only enabled if the question contains specific tags (mostly language or framework related). Since all questions on this site are about WordPress, we don't use the or tags, and none of the new questions get syntax highlighting.

I think the WP SE should have the default syntax highlighter (without language hint) enabled, since it seemed to work pretty good for our needs (PHP, HTML, JS, CSS, occasionally SQL). Otherwise we would need to add almost every tag to the syntax highlighter.

I'm tagging this question in the hope that it gets noticed by one of the overlords...

share

4 Answers 4

up vote 4 down vote accepted

UPDATE:

Wordpress will now style by default when there are no tags that match other language hints.

is set to the default language hint and is set to php.

share
2  
Yes, but the point is that we don't use those tags, as every question is about WordPress and almost every question uses PHP. Just like you don't use programming-question on Stack Overflow. –  Jan Fabry Dec 16 '10 at 14:49
    
@jan what percent of questions have PHP code? –  Jeff Atwood Dec 16 '10 at 15:40
1  
@Jeff: Of the 50 questions on the home page, 27 contain code, and 23 of these contain PHP code. spreadsheets.google.com/… –  Jan Fabry Dec 16 '10 at 17:02
2  
@jan ok we will look into this. This site is a bit unique in that regard –  Jeff Atwood Dec 16 '10 at 17:10

Jan, excellent point, thanks for catching this. I posted on that SO meta thread to point this out - I suggest that you (and whoever else thinks this is important) vote my answer up so as to get the attention of the necessary people.

share
    
Great! Geoff reverted the [status-completed] tag, so at least they know we have a problem here! –  Jan Fabry Dec 16 '10 at 15:33

Totally agree and i noticed highlighting still works the old way in the preview box though.

+1000000 from me.. ;)

share

Can't there be a default fallback to PHP if not further language has been specified? I think that catches most of the cases.

UPDATE: This is how it is now.

share
1  
I don't think we need to specify the language: this would prevent correct highlighting of Javascript if that tag is not used. The default settings works for most languages, but not so good for SQL, VB, Lisp, ... which is why this new system makes sense for Stack Overflow, but not for WPSE. –  Jan Fabry Dec 16 '10 at 15:24

You must log in to answer this question.

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