Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Commit 4f67e96

Browse files
author
7coil
committed
add support for json (and abuse js for json5)
1 parent eb75e89 commit 4f67e96

File tree

1 file changed

+3
-0
lines changed
  • client/pages/DocPage/DocPageContentBox

1 file changed

+3
-0
lines changed

client/pages/DocPage/DocPageContentBox/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import hljs from 'highlight.js/lib/highlight';
22
import hljsBash from 'highlight.js/lib/languages/bash';
33
import hljsDiff from 'highlight.js/lib/languages/diff';
44
import hljsJavascript from 'highlight.js/lib/languages/javascript';
5+
import hljsJson from 'highlight.js/lib/languages/json';
56
import marksy from 'marksy/jsx';
67
import React, { Component, createElement } from 'react';
78
import ContentBox from '../../../components/ContentBox';
@@ -14,6 +15,8 @@ import './vs2015.scss';
1415
hljs.registerLanguage('javascript', hljsJavascript);
1516
hljs.registerLanguage('bash', hljsBash);
1617
hljs.registerLanguage('diff', hljsDiff);
18+
hljs.registerLanguage('json5', hljsJavascript);
19+
hljs.registerLanguage('json', hljsJson);
1720

1821
class BotPageContentBox extends Component {
1922
constructor(props) {

0 commit comments

Comments
 (0)