justcaliturner / simple-code-editor

Simple code editor for Vue.js
https://simple-code-editor.vicuxd.com
154 stars 30 forks source link

Highlighting not working #52

Open albertostiip opened 5 months ago

albertostiip commented 5 months ago

The code highlighting function, and thus the application of theme colors, is not working.

Every time I type a new character in the text area, I receive a log like this:

image

This is how the simple-code-editor component looks:

image

package.json:

"simple-code-editor": "^2.0.9", "vue": "^3.4.27",

diazvictor commented 4 months ago

The code highlighting function, and thus the application of theme colors, is not working.

I have the same problem...

iainwoodou commented 4 months ago

Just FYI the current fix is to use hilight.js 11.8.0

  1. Delete Node-modules folder
  2. Change package JSON to have "highlight.js": "11.8.0", (note .. NOT "^11.8.0",
  3. npm install

and should work

apparently there is a pull request that fixes it https://github.com/justcaliturner/simple-code-editor/pull/45