README.md 786 B

Gitbook Plugin for Prism

Before

After

Usage

Add the plugin to your book.json, and disable default GitBook code highlighting:

{
  "plugins": ["prism", "-highlight"]
}

Options

Override default styles. All css files must reside in the same folder.

"pluginsConfig": {  
  "prism": {
    "css": [
      "prismjs/themes/prism-solarizedlight.css"
    ]
  }
}

Credits

Originally based on https://github.com/spricity/google_code_prettify.

License

Apache 2