luwes / craft-codemirror

Add the awesome in-browser code editor CodeMirror as a field type.
MIT License
18 stars 10 forks source link

CSS syntax not working? #5

Closed Chrisedmo closed 5 years ago

Chrisedmo commented 6 years ago

Cool plugin but, I'm trying to make an inline CSS editor and it's not picking up the syntax highlighting for CSS despite having CSS enabled in my modes?

Any ideas?

tyler-deboer commented 6 years ago

I'm running into the same thing. How do you go about switching modes? Are they supposed to be configured on a per-field basis?

tyler-deboer commented 6 years ago

FWIW, I was able to get the syntax highlighting to work by commenting out this line, and moving the "css" to the top of the modes array (so moving it to line 35).

luwes commented 5 years ago

In v1.0.1 there is an extra option now to choose the preferred "mode". Closed by #4