6

Specifically this question. Apparently it's interpreting /* as the beginning of a comment which it isn't in any shell I known of (only JS, Java and some C-like language to my limited knowledge do this). I forced bash syntax highlighting with the <!-- language --> stanza and the results changed, so it was fault of the shell-script tag. I don't know how much SE modified prettify library to start shouting and flipping tables give an accurate diagnostic of where the bug is.

6

It's failing on that question because it's tagged with both and . is associated with the "bsh" language, which I guess is a bash-specific highlighting. is associated with generic shell script highlighting. Since the question has two languages defined, prettify doesn't know which it should use and falls back on just doing generic highlighting, which doesn't work great. Specifying the language manually is probably the right fix.

  • Can you modify the language for shell-script to bash? Since that's almost all the shell script question posted in the site written with, we may just tell the system so. – Braiam Jun 11 '14 at 4:07
  • 3
    From what I can tell, bsh, csh, and sh are all highlighted the same, so I changed the bash tag to use sh highlighting. Seems to work – Michael Mrozek Jun 11 '14 at 4:53

You must log in to answer this question.

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