0.1.2 • Published 7 years ago
gatsby-syntax-highlight-dracula v0.1.2
Dark syntax highliting theme for gatsby-remark-prismjs plugin with pre-configured line numbers and line highlights.
Installation
- Assumed you are using gatsby-sass and gatsby-remark-prismjs.
npm install gatsby-syntax-highlight-draculaimport gatsby-syntax-highlight-draculaingatsby-browser.js.
- In order to show line numbers add
showLineNumbers: trueingatsby-remark-prismjsconfig. - If you don't use gatsby-plugin-sass then you have to import
gatsby-syntax-highlight-dracula/lib/styles.cssingatsby-browser.jsfor step #3.
Screenshots
CSS

Inline code

Line highlight

Code Selection
