Question

I have a Jekyll blog, I am trying to switch from this

{:lang='bash'}
    #!/bin/sh
    echo 'Hello World!'

To this

{:lang='bash'}
{% include program-w32-build-100.sh %}


The include inserts the text from the file, and the lang='bash' is supposed to highlight it. Since the text in the file is not tabbed, it does not get highlighted. Is there a way to make this happen?

jason.the-graham.com/2010/11/21/kramdown_support_for_jekyll

Was it helpful?

Solution

Lucky me!

You can do this

{:lang='bash'}
~~~
{% include rtmpdump-w32-build-100.sh %}
~~~

§ Fenced Code Blocks

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top