Skip to content

Commit

Permalink
#95: add syntax highlighter for c++
Browse files Browse the repository at this point in the history
  • Loading branch information
art-in committed Jun 26, 2019
1 parent 37553d4 commit c67655b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/shared/Markdown/init-syntax-highlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import hl from 'highlight.js/lib/highlight';

// directly import languages to avoid bundling unused modules
hl.registerLanguage('cpp', require('highlight.js/lib/languages/cpp'));
hl.registerLanguage('cs', require('highlight.js/lib/languages/cs'));
hl.registerLanguage('css', require('highlight.js/lib/languages/css'));
hl.registerLanguage('go', require('highlight.js/lib/languages/go'));
Expand Down

0 comments on commit c67655b

Please sign in to comment.