What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

Today, when I've been visiting the various SE sites (especially SO), the code syntax highlighting hasn't been kicking in. Instead, this is what I see:

Code block without syntax highlighting

I've restarted my computer, restarted Chrome, cleared the cache (and restarted Chrome again afterwards), but I still can't get the syntax highlighting to kick back in again. However, it seems to work fine on Opera, Firefox, and Safari. What's going on?

EDIT: Even after turning off my Adblocker, I'm still getting some errors. Externally loaded JS not loading

Which, when paired with the Webkit's Developer Console, returns this error message: Chrome not running JavaScript script

(There is no accompanying message regarding line number, but I believe this is the error, as the script linked on the following line fails since jQuery was not loaded.) Refreshing and restarting (both Chrome and my computer) didn't change anything, so what's the issue? I haven't installed any software updates for a while, so unless Chrome silently downloaded an update that's been breaking SO's scripts, I don't think that's the problem.

I should also add that this is the first time seeing this "External JavaScript" message, so I don't think it's the Adblocker plugin anymore.

share|improve this question
1  
If you check the message log in Chrome (Ctrl+Shift+J) when some unhighlighted code is displayed, do you see anything unusual? Also: do you have any extensions installed that might interfere? –  Shog9 Mar 1 '12 at 4:59
    
@Shog9 I only get the "Failed to load resource" message from the ad servers/CDN in the console. As for extensions, I have the SE keyboard shortcuts, TT+, Adblocker, Turn off the Lights, and some other Turntable related extensions, so I don't think those are blocking it. –  Edwin Mar 1 '12 at 15:04
    
It's not just the ads that are pulled from the CDN... Try opening an Incognito-mode Chrome window and loading a page with some code on it, see if that makes a difference. –  Shog9 Mar 1 '12 at 15:26
    
Syntax highlighting is back in Incognito. There are no errors; just warnings that the Content-type header may be incorrect for some of the responses. –  Edwin Mar 1 '12 at 15:30
    
Try disabling your adblocker first then - there's a reasonable chance it's tripping up the highlighter script. If that doesn't work, just disable the rest, verify it works, and finally start enabling them one by one until it breaks again. –  Shog9 Mar 1 '12 at 15:36
    
@Shog9 It was Adblocker. Odd though, since this is the first time it's broken SO, and I've been using it for months. –  Edwin Mar 1 '12 at 15:54
    
@Edwin: You should post an answer if you've found the solution. Other people might have the same problem with Adblocker. –  Cody Gray Mar 1 '12 at 19:25

1 Answer 1

up vote 2 down vote accepted

It turned out to be a problem with Adblocker. If you have adblocking services, be sure to whitelist stackoverflow.com/questions.

share|improve this answer

You must log in to answer this question.

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