Liking cljdoc? Tell your friends :D

glow.core


generate-cssclj

(generate-css)
(generate-css colorscheme)

By default, generate-css uses glow.colorschemes/solarized-dark to figure out which colors to use. If you want to use a different colorscheme, just pass in a map in a style akin to that as an optional second argument, e.g.:

{:string :blue :number :green}

By default, generate-css uses `glow.colorschemes/solarized-dark` to figure
out which colors to use. If you want to use a different colorscheme, just
pass in a map in a style akin to that as an optional second argument, e.g.:

  {:string :blue
   :number :green}
sourceraw docstring

highlightclj

(highlight s)
(highlight s colorscheme)

Given a string of valid Clojure source code, parse it and return a syntax-highlighted string of the same.

By default, highlight uses glow.colorschemes/terminal-default to figure out which ANSI colors to use. If you want to use a different colorscheme, just pass in a map in a style akin to that as an optional second argument, e.g.:

{:string :blue :number :green}

Given a string of valid Clojure source code, parse it and return a
syntax-highlighted string of the same.

By default, highlight uses `glow.colorschemes/terminal-default` to figure out
which ANSI colors to use. If you want to use a different colorscheme, just
pass in a map in a style akin to that as an optional second argument, e.g.:

  {:string :blue
   :number :green}
sourceraw docstring

highlight-htmlclj

(highlight-html s)

Given a string of valid Clojure source code, parse it and return an HTML document of the same with span classes set. This should be used in tandem with generate-css.

Given a string of valid Clojure source code, parse it and return an HTML
document of the same with span classes set. This should be used in tandem
with `generate-css`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close