Syntax highlighting not working?

AI-generated summary

In the ‘Bug’ category, user peternlewis reported that syntax highlighting for code blocks ceased functioning after updates to Discourse 1.6.6 or 1.6.7, affecting all languages tested (bash, perl, applescript). codinghorror suggested a possible regression requiring investigation by @sam. sam hypothesized that a plugin might be the culprit, noting a previous instance where a plugin broke this feature. peternlewis investigated their installed plugins, discovered an outdated version of discourse-solved, and updated it. This action resolved the issue, confirming the plugin was the cause. The thread also included a lighthearted comment by codinghorror about needing a “safe mode” feature for such debugging scenarios.

Syntax highlighting in code blocks seems to have stopped working on my site.

Using a code block with a specified language (eg “bash”) like this:

echo "test"

I get nice formatting here, and I have previously, but now (probably with the 1.6.6 or 1.6.7 updates), the highlighting stopped working.

Is there some new setting I need to enable? My settings look like this:

It doesn’t seem to matter what language, bash, perl, applescript all do no highlighting.

Any ideas what’s wrong?

Maybe regression? @sam would need to take a peek.

Are there any plugins involved on your site, I recall there was a plugin at some point that broke this.

5 Me gusta

If only we had some kind of “safe mode” people could invoke on their Discourse :slight_smile:

5 Me gusta

OK, I went to get the versions of the plug ins (I only have a couple, and all were up to date when I updated to 1.6.7, but discourse-solved had an update, and updating that resolved the problem. So I guess that was it, or the update kicked whatever was unhappy.

Resolved.

Thanks.

5 Me gusta