--- title: Syntax Highlighter Module --- The Syntax Module enhances the Code Block format by automatically detecting and applying syntax highlighting. The excellent [highlight.js](https://highlightjs.org/) library is used as a dependency to parse and tokenize code blocks. In general, you may [configure](https://highlightjs.readthedocs.io/en/latest/api.html#configure-options) highlight.js as needed. However, Quill expects and requires the `useBR` option to be `false` if you are using highlight.js < v11. Quill supports highlight.js v9.12.0 and later. ### Usage
`}} /> If you install highlight.js as an npm package and don't want to expose it to `window`, you need to pass it to syntax module as an option: ```js import Quill from 'quill'; import hljs from 'highlight.js'; const quill = new Quill('#editor', { modules: { syntax: { hljs }, }, }); ```