CSS Highlighting Stopped Working
-
Can anyone suggest why my Notepad++ syntax highlighting for CSS may have suddenly stopped working?
I haven’t knowingly changed any setting. I am 99% sure it was working but can’t be 100% sure because it is a while since I used it.
Any help gratefully received.
Kind wishes - Patrick
-
Random guess #1: your file isn’t saved as
.css
, so Notepad++ is treating it as a plain-text file.Random guess #2: you are editing an HTML file with embedded CSS, but don’t have the HTML tags right, so the HTML lexer cannot tell that the section is supposed to be treated as CSS.
Random guess #3: you have a syntax error in your CSS, so invalid CSS isn’t getting syntax highlighted like valid CSS would be, because it’s not valid CSS.
-
As you did not provide screen shots or examples of what you saw, and what you expected to see, we need to use random guessing which does not seem productive for any of us.
In an earlier post you indicated that you have customized various colors for Notepad++. I’m wondering if it would be beneficial for you to set up a portable bare-bones copy of Notepad++ and to see if syntax highlighting for CSS works in that copy.
-
(Unfortunately, I am not allowed to link to usernames, as I have not used the forum before.)
My apologies - it was not my intention to waste anyone’s time. My question was so general (I had no idea when it started or any steps I might have taken beforehand) that I wasn’t sure what to supply. I accept a screenshot might have been helpful.
The comment by mkupper about a portable install got me thinking that a normal reinstall probably wasn’t a bad idea and it has fixed it.
Thank you for the comments.
Kind wishes - Patrick