Pregunta

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

¿Fue útil?

Solución

Lucky me!

You can do this

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

§ Fenced Code Blocks

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top