51

I like the look of Sublime Text 2 but I prefer using Notepad++ as my default text editor. Is there a way to make the notepad++ application itself dark? More specifically, I would like to change the region highlighted in red to a dark background with a light grey text.

I am on Win 8 (x64).

Thanks in advance!

enter image description here

5
31

Update 2021-06

On 2021-06-07, Notepad++ v8 was released, with dark mode support. (On 2021-06-17, v8.1 followed it with some improvements).

Disclaimer: I haven't actually tried v8 yet, but I assume that the native dark mode support is far superior to modifying and building from source, as discussed in the remainder of this answer.


The themes, as you guessed, can't do this (they only handle what's in the text editing window). To change the colors you'll have to change color values in the source code (download from the site or GitHub).

  1. Extract the file
  2. Find the elements whose color you'd like to change, and change them. All colors I've seen are denoted RGB(xx,xx,xx)
  3. Rebuild (see /readmeFirst.txt once you've extracted)

I've just glanced at these files, but I'm definitely going to work at this a little tomorrow and I don't mind giving you my results once I've solved it.

Anyway, what I've seen at a glance is that you'll want to look in

  • /PowerEditor/src/ScitillaComponent/DocTabView (I think)
  • /PowerEditor/src/WinControls/TabBar
  • /PowerEditor/src/WinControls/ToolBar

That's all I noticed that might be of interest so far, but again, I'll look at it more tomorrow and get back to you.

Edit: the official makefile will give some errors, because /PowerEditor/src/Parameters.h references files incorrectly. Here are the two I fixed so far:

#include "TinyXml/tinyXmlA/tinyxmlA.h" (line 33)
#include "TinyXml/tinyxml.h" (line 37)

Change those lines in Parameters.h to what I've written to deal with them. Don't worry about the warnings ("extra tokens after #endif") - they're just comments.

Edit 2: I'm using VS2012, in which the build process results in numerous errors. I won't post them here unless someone eventually asks about them, in which case I'm happy to do so. I should have a working build up soon!

Edit 3: It seems Notepad++'s provided VS project file was created with an earlier version of Visual Studio, and in updating the files, Visual Studio 2012 creates many problems, so if you go that route, use VS2010.

Edit 4: I didn't make it obvious in Edit 3, but I gave up after realizing just how difficult it was going to be to get around the VS errors. I imagine the code has changed significantly since I wrote this answer as well; unfortunately I didn't note the version, but I'm sure it was the latest available at time of writing this answer, which, according to "All versions", was probably either 6.4.1 or 6.4.2. However, I hope this is a useful starting point for anyone else who reads (this answer has received consistent attention since writing).

7
  • Thanks so much trojansdestroy, I will take a look and give a try. Jul 10 '13 at 23:59
  • 1
    I've done some work on it now, and I think I've changed the correct color values for the tab bar. However, using the npp-provided Makefile, encountered some errors. See above.
    – Trojan
    Jul 11 '13 at 21:55
  • Folder structure seems to have changed between 6.4.2 and 6.6.9, though file names still seem accurate Sep 22 '14 at 22:22
  • Did you ever upload a working build online? I've never built an app from source before and this is really confusing. Mar 13 '15 at 1:43
  • 4
    Be great to fork the original source and update the theme manager to be able to colourise these elements and do a pull request.
    – rollsch
    Jan 21 '17 at 6:11
2

Use WindowBlinds from Stardock . It supports global skinning for all apps in Windows but I believe you can also give it special instructions for skinning individual apps.

1
  • 8
    Please read meta.superuser.com/questions/5329/… for guidance on recommending software. Just pointing to a product that might be useful doesn't explain how to accomplish what was asked in the question. A comment can be used to leave helpful hints that point the reader in the right direction to develop their own answer.
    – fixer1234
    Jun 30 '15 at 6:24
1

You can press alt+shift+print screen and it will change all colors of windows to dark including Notepad++.

You can change the tab colors in notepad++ and it changes the tab writing and the tab background and perhaps the window I don't know.

I have written a Notepad++ dark theme generator here with 700 ready made high contrast Notepad++ themes to download:

http://forum.unity3d.com/threads/wrote-a-random-notepad-theme-generator.393215/#post-2564857

4
  • 1
    Can you include a screenshot?
    – Burgi
    Mar 24 '16 at 10:59
  • 1
    This shortcut doesn't do anything.
    – easycheese
    May 10 '16 at 15:10
  • 20
    Note to all who read this answer: this is a built-in Windows shortcut to enable the dark "high contrast" theme.
    – LWChris
    Aug 19 '16 at 20:44
  • @easycheese it does in Win10 and I have tried it successfully. Though your system might not have it enabled or have at all.
    – Multifix
    Apr 21 '20 at 16:22
1

Another option would be to switch on the Magnifier:

Start + R > Magnify.exe

Just put it on 100%, so it doesn't magnify and then press Ctrl+Alt+I. It will invert all the colors on the screen, so white becomes black and vice versa! Just make sure to choose a white color scheme in Notepad++ and tada!

As a "bonus" you can also try to add a hue shift of 50% (at least if you have NVidia, I think) to get the original hues back and still have the dark and light shades swapped.


On Windows 10 another more fitting (and perhaps better) option exists. For inverting the brightness (and optionally inverted + grayscale), you can use the color filters for accessibility (link to the Microsoft article on the settings page):

Start > Settings > Ease of Access > Color filters

If the keyboard shortcut is enabled, you can now use Ctrl+Win+C to toggle your previously chosen color filter.

-4

Ignore all these garbage answers that tell you to download and do jump thru hoops & loops. Just go to Settings/StyleConfig/Select Theme as Dark Black and you are done. Im sure there was easier solution for my fav. editor than all the convoluted answers I found.

Credit: code2care.org

1
  • 2
    Did you even look at the attached screenshot?
    – tomasz
    Dec 28 '20 at 17:50

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.