Notepad++ not syntax highlighting my files

前端 未结 7 1881
春和景丽
春和景丽 2021-02-03 17:33

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

相关标签:
7条回答
  • 2021-02-03 18:02

    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.

    0 讨论(0)
  • 2021-02-03 18:03

    Another possible situation that could cause this is if you install new themes. If the theme doesn't have certain languages defined and you use one of those, then you will lose the syntax highlighting as well.

    To Check: Settings -> Style Configurator

    Check that the language is there on the left hand side for the current theme you are running.

    0 讨论(0)
  • 2021-02-03 18:05

    So I Know this problem was solved 7 years ago but it's the top result on google so I wanted to add what the solution to my problem.

    Under Settings -> Preferences... -> Languages

    I had stupidly disabled python without realizing that that's what I was doing, just had to put it back into available items.

    0 讨论(0)
  • 2021-02-03 18:19

    Go to Settings -> Style configurator... then disable Enable global foreground color and Enable global background color. This fixed my problem.

    0 讨论(0)
  • 2021-02-03 18:22

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

    0 讨论(0)
  • 2021-02-03 18:23

    I had the exact same problem and none of the posted solutions worked for me so I digged deeper and found that I mistakenly assigned my user defined extensions twice under Settings → Style Configurator, for example SQL and XML.

    Deleting my user defined extension from one language restored the syntax highlighting.

    0 讨论(0)
提交回复
热议问题