Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight of bash code blocks #12

Closed
adomingues opened this issue Apr 21, 2015 · 0 comments
Closed

Highlight of bash code blocks #12

adomingues opened this issue Apr 21, 2015 · 0 comments

Comments

@adomingues
Copy link
Contributor

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.

adomingues added a commit to adomingues/AcademicMarkdown that referenced this issue Aug 1, 2016
Fenced code labelled as "bash" now highlighted following the same rules as for "shell". Fixes minor [issue](mangecoeur#12) when converting makdown to html via pandoc.
adomingues added a commit to adomingues/AcademicMarkdown that referenced this issue Aug 1, 2016
Fenced code labelled as "bash" now highlighted following the same rules as for "shell". Fixes minor [issue](mangecoeur#12) when converting makdown to html via pandoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant