aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-10-25 20:08:55 +0800
committerAugust Skare <post@augustskare.no>2018-10-25 20:15:47 +0800
commit1581ced6ec828d5b404dbcd1d7a09c0d8778a442 (patch)
tree15c88364fb5857045eed639e66ea055baa464d95 /packages/dev-tools-pages
parent5e8f53c7b787fa99e721fe9949ecd762715bb891 (diff)
downloaddexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar.gz
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar.bz2
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar.lz
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar.xz
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.tar.zst
dexon-sol-tools-1581ced6ec828d5b404dbcd1d7a09c0d8778a442.zip
add json support to highlight
Diffstat (limited to 'packages/dev-tools-pages')
-rw-r--r--packages/dev-tools-pages/ts/highlight.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/dev-tools-pages/ts/highlight.tsx b/packages/dev-tools-pages/ts/highlight.tsx
index 7187118d0..8dff4c9e9 100644
--- a/packages/dev-tools-pages/ts/highlight.tsx
+++ b/packages/dev-tools-pages/ts/highlight.tsx
@@ -1,7 +1,9 @@
const hljs = require('highlight.js/lib/highlight');
const javascript = require('highlight.js/lib/languages/javascript');
+const json = require('highlight.js/lib/languages/json');
hljs.registerLanguage('javascript', javascript);
+hljs.registerLanguage('json', json);
interface PatchInterface {
[key: string]: string;