aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/highlight.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-10-25 19:10:35 +0800
committerGitHub <noreply@github.com>2018-10-25 19:10:35 +0800
commit1ae9f68db8c9768e68d1eab1f411b346e9512c1c (patch)
treeed13286ad8d4b60cf5bffac2182328baa0367f02 /packages/dev-tools-pages/ts/highlight.tsx
parente5d3e3b33a88e2b08ed02cb39910fab28e130594 (diff)
downloaddexon-0x-contracts-1ae9f68db8c9768e68d1eab1f411b346e9512c1c.tar.gz
dexon-0x-contracts-1ae9f68db8c9768e68d1eab1f411b346e9512c1c.tar.zst
dexon-0x-contracts-1ae9f68db8c9768e68d1eab1f411b346e9512c1c.zip
Content (#7)
* optional children in List component * added real content to trace page * added real content to cov page * add support for json highlighting * real content on compiler page * real content on profiler page * remove unused import * remove list from compiler page * wrap code components in pages with breakout component * fix font size on text * fix typo
Diffstat (limited to 'packages/dev-tools-pages/ts/highlight.tsx')
-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 0c4602d51..9d7844c89 100644
--- a/packages/dev-tools-pages/ts/highlight.tsx
+++ b/packages/dev-tools-pages/ts/highlight.tsx
@@ -1,6 +1,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;