aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/highlight.tsx
blob: 9d7844c8993d48b3bb9691f4d317cfa908abaea7 (plain) (blame)
1
2
3
4
5
6
7
8
const highlight = require('highlight.js/lib/highlight');
const javascript = require('highlight.js/lib/languages/javascript');
const json = require('highlight.js/lib/languages/json');

highlight.registerLanguage('javascript', javascript);
highlight.registerLanguage('json', json);

export default highlight;