From c67655b94551c9624a401a240bebe50b4f146f95 Mon Sep 17 00:00:00 2001 From: artin-phares Date: Wed, 26 Jun 2019 14:42:06 +0300 Subject: [PATCH] #95: add syntax highlighter for c++ --- src/view/shared/Markdown/init-syntax-highlighter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/shared/Markdown/init-syntax-highlighter.js b/src/view/shared/Markdown/init-syntax-highlighter.js index 1d6686c..bc8ed63 100644 --- a/src/view/shared/Markdown/init-syntax-highlighter.js +++ b/src/view/shared/Markdown/init-syntax-highlighter.js @@ -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'));