mangecoeur / AcademicMarkdown

Extensions to MarkdownEditing for writing academic papers
68 stars 14 forks source link

Highlight of bash code blocks #12

Closed adomingues closed 5 years ago

adomingues commented 9 years ago

Currently shell code blocks are highlighted in sublime 2, however as soon as I change the code block language to bash there is no more highlighting.

This would normally not be a problem, except that when I convert the .md to html using pandoc, code blocks labelled as shell do not get shaded and highlighted in the final html, whereas those labelled as bash do. In summary:

shell: Code highlighted in md file, code formatted as normal text in html 
bash: Code not highlighted in md file, code highlighted in html. 

Of course I would like to have the best of both worlds :) So the question is, can code blocks labelled as bash have the same formation as those labelled with shell? I would imagine this would be a simple change in a line of code somewhere, adding highlight support to bash using the same setting as for shell. I thought that I could do it myself, but I can't find where and what to change.

Cheers.