summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notebook/lib/highlight.js
blob: 74ade6d2edf84849bb880f3aefd08b5c6925783f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Prism from 'prismjs';
import 'prismjs/components/prism-python';
import 'prismjs/plugins/custom-class/prism-custom-class';

Prism.plugins.customClass.map({
  comment: 'c',
  error: 'err',
  operator: 'o',
  constant: 'kc',
  namespace: 'kn',
  keyword: 'k',
  string: 's',
  number: 'm',
  'attr-name': 'na',
  builtin: 'nb',
  entity: 'ni',
  function: 'nf',
  tag: 'nt',
  variable: 'nv',
});

export default Prism;