For example, if I open a text file, notepad++ would open it in 'default' theme. But if I open a php file for instance, it would open it in 'custom_theme1'. I know notepad++ is highly extensible, so I wasn't sure if anybody had ever run across a plugin that could do it. Or could a plugin even be written to do this?

  • how different should the theme be? you can specify your User-Defined language and apply it
    – mreq
    May 30 '12 at 18:39
  • @petr marek The theme that I want is a custom one that I've added and I am certainly able to manually go to Settings > Style Configurator and choose from the theme drop down list. You said "you can specify your User-Defined language and apply it" > do you have an example how to do that? Sounds like it could provide a possible answer to my question.
    – Andy E
    May 30 '12 at 19:03
  • Select Language from the menu bar and click User-defined. A floating window will open. screencast.com/t/jO6oBPaD
    – mreq
    May 31 '12 at 18:11
  • @peter marek Right I get that, but what I want to do is if I open a php file, I want it to automagically change the editor's theme to a different one (a darker one), but if I open a text file, I want it to change the theme to default. I'm not using any custom defined languages. Sorry if my original question was confusing.
    – Andy E
    May 31 '12 at 19:15
  • 4
    It appears this feature is not a part of notepad++ but has been put in as a feature request. See here: sourceforge.net/apps/ideatorrent/notepad-plus/ideatorrent/idea/…
    – 에이바
    Jun 4 '12 at 18:54

Unfortunately, at this time it appears that this functionality is not a part of Notepad++. However, it has been submitted to the developers as a feature request.

Let Language style change theme, or global bg colour
Written by yakumo-unr the 5 Dec 10 at 01:23.

I would like for a language definition to be allowed to change the global theme for when that language is loaded, and/or at the very least change the global background colour.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.