9
votes
Is there something wrong with tags determining the language for syntax highlighting?
The shell-script was set to highlight using lang-sh. I just changed that so it uses lang-bsh instead and that seems to have fixed the issue. I don't know if that's because lang-sh was broken or ...

terdonMod
- 215k
7
votes
Accepted
Why aren't some codeblocks highlighted?
The code highlighter is more often than not tied to the tags on the questions - tags can have a highlighting hint tied to them, but the c tag didn't have one.
I've set that up, so the c block ...
7
votes
Accepted
False bash syntax highlighting: '$#' should not get identified as comment start
As explained in this meta.se FAQ post:
Stack Exchange does not have its own syntax highlighting engine. It uses Google Code Prettify. Therefore, any bugs and feature requests regarding syntax ...

terdonMod
- 215k
6
votes
Accepted
How to switch on syntax highlighting for python snippet?
The problem was python, which tells it to use the syntax highlighting associated with the tag python, which for some reason was set to "none". I changed it now, so both the methods you described will ...
6
votes
Accepted
Why prettify mistakes `/*` as comment for "shell script"
It's failing on that question because it's tagged with both bash and shell-script. bash is associated with the "bsh" language, which I guess is a bash-specific highlighting. shell-script is associated ...
5
votes
Accepted
Shell syntax highlighting does silly things like consider rmdir a comment
You either need to specify a tag name, or a language prefixed with lang-. There is no registered language named shell, so lang-shell kicks it into a default mode the same as if you'd done lang-...
3
votes
Improve syntax detection based on shebang
If the question is tagged zsh, it will already apply syntax highlighting 'shell style'. You can see that by checking the Tag Info; at the bottom there's a little message:
Code Language (used for ...
2
votes
Accepted
Suggestion to use 'bash' as syntax highlighting for text processing related tags
For your trivial examples, syntax highlighting looks mildly good because they have short strings in them highlighted as such. But for most text I have seen, blanket-wrapping all awk or sed code (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
syntax-highlighting × 9bug × 4
support × 3
feature-request × 2
status-completed × 1
status-bydesign × 1
formatting × 1