Prism
Gitbook Plugin forBefore
After
Usage
Add the plugin to your book.json
, and disable default GitBook code highlighting:
Options
css
Override default styles. All css files must reside in the same folder.
"pluginsConfig":
lang
Support non-standard syntax prefixes by aliasing existing prefixes.
"pluginsConfig":
ignore
Due to other plugins using code block notion to denote other functionality, you can ignore certain langs
"pluginsConfig":
Prism Themes
https://github.com/PrismJS/prism
prismjs/themes/prism-okaidia.css
Okaidia prismjs/themes/prism-solarizedlight.css
Solarized Light prismjs/themes/prism-tomorrow.css
Tomorrow prismjs/themes/prism-dark.css
Dark prismjs/themes/prism-coy.css
Coy Atelierbram Themes
https://github.com/atelierbram/syntax-highlighting
syntax-highlighting/assets/css/prism/prism-base16-ocean.dark.css
Base16 Ocean Dark syntax-highlighting/assets/css/prism/prism-base16-google.light.css
Google Light syntax-highlighting/assets/css/prism/prism-xonokai.css
Xonokai Credits
Originally based on https://github.com/spricity/google_code_prettify.
License
Apache 2