Syntax highlighter not working in angular 6 project

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"]
      };

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

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