(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}
(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}
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close