Notepad++ not syntax highlighting my files

sscirrus picture sscirrus · Aug 5, 2010 · Viewed 70.3k times · Source

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.

Answer

Ashley Grenon picture Ashley Grenon · Aug 5, 2010

You could try going to Language > H > Html and that should highlight stuff.