Fork me on GitHub

Highlight Setting

Code's language is detected by google-code-prettify automatically, however you can specify language with defining highlight setting.

Example

_config.clj
{
 ; directory setting
 ; ....

 ; highlight setting
 :code-highlight {:CLJ "lang-clj"}
 }

With above setting, following code has lang-clj css class.

##CLJ
(println "hello, world")
CLJ
; => <pre class="prettyprint lang-clj">
;    (println "hello, world")
;    </pre>

With not defined string, class contains prettyprint simply.

##NOTDEFINED
(println "hello, world")
NOTDEFINED
; => <pre class="prettyprint">
;    (println "hello, world")
;    </pre>

« Edit Template  |  Top Page  |  Clojurescript »