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.
-
possible duplicate of The syntax highligher for this js script seems to have a bug for the code after the */– Michael DurrantJun 13, 2014 at 0:24
1 Answer
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 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.– BraiamJun 11, 2014 at 4:07
-
3From 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 Jun 11, 2014 at 4:53