Possible Duplicate:
Syntax highlighting misinterprets shell code as C

In this answer, everythng after the '/*' shows as a comment (but this isn't happening in the preview). Is this a bug? If not, how can I tell Markdown that this is part of the code? I tried backticks instead of indenting, but then the indenting I had in the code was stripped out.

marked as duplicate by YOU, Jeff Atwood Apr 9 '11 at 3:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    make sure the question contains a tag that hints the code is shell code – Jeff Atwood Apr 9 '11 at 3:43

I have edited for you, like this

<!-- language: bash -->

    for f in $FILES ; do
        echo "#extra text" >> $f
  • Thanks for the infor and edit! – GreenMatt Apr 8 '11 at 16:08
  • 1
    @green in this case there were two strong "language" tags fighting which caused the syntax highlighting to revert to default. I removed the shell tag. – Jeff Atwood Apr 9 '11 at 3:44

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