Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Highlight Setting

liquidz edited this page Mar 31, 2012 · 5 revisions

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 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="prettyrpint">
;    (println "hello, world")
;    </pre>

Back to Home

Clone this wiki locally