A language definition for BibTeX in the PrismJS syntax-highlighting framework.
npm install prismjs-bibtexPrismJS-BibTeX
========

!minified size
A [BibTeX] language extension for [PrismJS].
Simply import the prism-bibtex.min.js (recommended at the end of body):
``html`
I recommend using the [SRI (Subresource Integrity)][SRI] hash as well:
`html`
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
Remember to import the PrismJS stylesheets and scripts before importing this extension.
For example:
`html`
1. Add the package to your project:
`console`
$ npm install prismjs-bibtex
2. Import prismjs-bibtex your .js file, after Prism:
`js`
import Prism from 'prismjs';
import 'prismjs-bibtex';
Check out some small BibTeX examples on the project webpage. You can also check the performance on large real-life .bib` files below:
- (~68 KB) Some BibTeX examples from CTAN
- (~144 KB) Bibliography of ACM Turing Award lectures
- (~534 KB) STOC 2010 -- 2019 bibliography
[BibTeX]: http://www.bibtex.org/
[prismjs]: https://prismjs.com/
[SRI]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity