justcaliturner / simple-code-editor

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

Highlighting not working #52

Open albertostiip opened 1 month ago

albertostiip commented 1 month 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 2 weeks ago

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

I have the same problem...

iainwoodou commented 1 week 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