Until a week ago I was happily coding html.erb files in Notepad++ with syntax highlighting. Then my hard drive crashed.
I reinstalled Notepad++ on my new system but when I open my html.erbs, only a few of them are highlighting properly.
I think the problem might be that most of these files are being considered 'normal text files', where the few that are working are considered 'html files'. I tried 'save as' html file of the same name, but it isn't working. How can I get my syntax highlighting back? This is seriously slowing me down.
Open Notepad++ once again, go back to the language menu, and at the bottom between "Define your language" and "User-Defined" you should find "choicescript". Select it and and your code should automatically be highlighted.
If you prefer to use the keyboard, hold the Shift key and use the arrow keys to select text in any direction. Hold Ctrl and Shift while pressing the left or right arrow key to select one word at a time instead of a space at a time. To select the entire document, press Ctrl-A.
Notepad also comes with additional ways to select all text. Right-click or press-and-hold anywhere to open a contextual menu. Then, click or tap on Select All. Alternatively, you can also access the Edit menu from the top-left corner, and then click or tap on Select All.
You could try going to Language > H > Html and that should highlight stuff.
Just in case, if anyone meets my situation: I had activated Enable global foreground color
in panel Settings -> Style configurator...
, deactivating it reactivated syntax highlighting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With