Gitbook plugin for atelierbram/syntax-highlighting (ab. ASH) base on gitbook-plugin-prism.
It provides additional themes when using gitbook-plugin-prism。
To view atelierbram/syntax-highlighting prism demo, click here.
-
Add the plugin to your
book.json
, and disable default GitBook code highlighting:{ "plugins": ["-highlight", "prism", "prism-ASH"] }
-
Install the plugins
gitbook install
-
Update
gitbook-plugin-prism
's configuration, override default styles:"pluginsConfig": { "prism": { "css": [ "syntax-highlighting/assets/css/prism/prism-base16-google.light.css" ] } }
All css files must reside in the same folder. The css file's root path is
${yourBookDir}/node_modules/
. The NPM modulesyntax-highlighting
is an dependency of this plugin.
Apache 2