Вопрос

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

Это было полезно?

Решение

Lucky me!

You can do this

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

§ Fenced Code Blocks

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top