diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-11 18:50:21 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-11 18:50:21 +0100 |
commit | 4755f6066bff2617988704e18c8c141056f1b4bd (patch) | |
tree | 7e1c58dfdc96134f7d2594bf63d2be226a98b4d7 /app/assets/javascripts/notebook/lib | |
parent | 3082a1195cc0939e0aa0b48a9f59dd84152ebdad (diff) | |
download | gitlab-ce-4755f6066bff2617988704e18c8c141056f1b4bd.tar.gz |
Moved NotebookLab assets into repo
Moved all the notebooklab assets into the GitLab repo
Diffstat (limited to 'app/assets/javascripts/notebook/lib')
-rw-r--r-- | app/assets/javascripts/notebook/lib/highlight.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/notebook/lib/highlight.js b/app/assets/javascripts/notebook/lib/highlight.js new file mode 100644 index 00000000000..74ade6d2edf --- /dev/null +++ b/app/assets/javascripts/notebook/lib/highlight.js @@ -0,0 +1,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; |