I am trying to include CodeMirror Plugin but am getting this error Uncaught ReferenceError: CodeMirror is not defined
My HTML CODE is here
Can anyone help ??
Thanks in advance..
I am trying to include CodeMirror Plugin but am getting this error Uncaught ReferenceError: CodeMirror is not defined
My HTML CODE is here
Can anyone help ??
Thanks in advance..
You're loading the clike module before CodeMirror itself.
Change the order in your HTML head from this:
<script type="text/javascript" src="../CodeMirror-2.33/mode/clike/clike.js"></script>
<script type="text/javascript" src="../CodeMirror-2.33/lib/codemirror.js"></script>
<script type="text/javascript" src="../CodeMirror-2.33/mode/javascript/javascript.js"></script>
To this:
<script type="text/javascript" src="../CodeMirror-2.33/lib/codemirror.js"></script>
<script type="text/javascript" src="../CodeMirror-2.33/mode/clike/clike.js"></script>
<script type="text/javascript" src="../CodeMirror-2.33/mode/javascript/javascript.js"></script>
ngx-codemirror
SQL high-late is not working, deeper I found the to the code mirror tag the class to high-late syntax cm-default, cm-link, cm-keyword these class is not appending.
config used :
public queryConfig = {
lineNumbers: true,
theme: 'twilight',
mode: 'text/x-sql',
lineWrapping : true,
autoFocus: true
};
The main.ts
file added the imports below:
The angularcli.json
file added the scripts below: