记事本++不语法突出显示我的文件 [英] Notepad++ not syntax highlighting my files
问题描述
直到一个星期前,我一直在用语法突出显示功能在Notepad ++中愉快地编写html.erb文件。然后我的硬盘崩溃了。
Until a week ago I was happily coding html.erb files in Notepad++ with syntax highlighting. Then my hard drive crashed.
我在新系统上重新安装了Notepad ++,但是当我打开html.erbs时,其中只有几个正确突出显示。
I reinstalled Notepad++ on my new system but when I open my html.erbs, only a few of them are highlighting properly.
我认为问题可能在于这些文件中的大多数被视为普通文本文件,而少数工作正常的文件被视为 html文件。我尝试了另存为同名的html文件,但无法正常工作。如何获得语法高亮显示?
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.
推荐答案
您可以尝试进入Language> H> Html,它应该突出显示内容。
You could try going to Language > H > Html and that should highlight stuff.
这篇关于记事本++不语法突出显示我的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!