Syntax highlighter not working in angular 6 project


#1

syntax highlighting not working in my angular 6 project even after importing all mode file and codemirror.js file
is there some issue with its configuration???

this.config = { 
        matchBrackets: true,
        indentUnit: 4,
        autoCloseTags: true,
        matchTags: true,
        indentWithTabs: true,
        autoCloseBrackets: true,
        lineNumbers: true, 
        mode:'javascript',
        theme: 'dracula', 
        foldGutter: true,
        gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
      };

#2

Maybe check whether you have codemirror.css imported. The config looks good.


#3

yes i have imported codemirror.css but highlighter is not working…