Domanda

I would like to use pygments for basic line-numbering only for files like krb.conf, Asterisk's extensions.conf or pam-configuration.

I use pygments via Jekyll.

{% highlight WHATOPUTHERE lineos %}
CODE CODE
{% endhighlight%}

However, I need to specify some language (otherwise nothing is produced). The same for unknown languages.

Software: * Jekyll 0.11.2 * Pygments 1.6

È stato utile?

Soluzione

There is a plain text language that you can use for situations where nothing else fits. I've just tested with the latest github-pages gem (uses Jekyl 1.4.3 and Pygments 0.5).

{% highlight text linenos %}

require 'yaml'
require 'rubygems'
require 'stringex'

{% endhighlight %}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top