


I'll try to do it in next couple of days, and then send the new version to Don. A lot of styleID's have to be updated to follow macros from SciLexer.cpp file. To paraphrase the title, everything is monospaced again :-)Īnyway, it looks like there are quite some problems with styles.xml file. When you set value for DEFAULT style, you will have to set the same style for IDENTIFIER too. Open N++, it will have one more entry for C++ language (IDENTIFIER). Define IDENTIFIER to have styleID="11" (fix name) Define DEFAULT to have styleID="0" (fix styleID)Ĥ. For C++ language copy line where DEFAULT style is defined (to have two identical lines)ģ. Open styles.xml in external editor (not N++).Ģ. Therefore you can't set it in Styles configurator, and therefore it gets value from global default.ġ. DEFAULT style covers visible characters and it is set through styles.xml file (for each language individually)įor some reason IDENTIFIER is not defined in styles.xml file for C++.

Ok, I just played around with this thing and this is what it comes down to. They don't do anything but mirror the default keywords of the next style down. Most obvious fix would be to make 'DEFAULT' include whitespace and everything else that isn't included by the other styles (instead of just identifiers), which is probably what it was supposed to do in the first place.Īlso, for certain themes and languages, the DEFAULT style shows the 'Default keywords' and 'User-defined keywords' input boxes, which it's not supposed to. Whitespace that isn't part of an explicit style (comments and preprocessor) passes through to the 'Default Style' of the 'Global Styles' language. (Though it probably should be available via the style sheet.) It works properly for some languages (Python) but not others (C++). It's hard coded into the language a little deeper than the style sheets. Working from left to right, you can find Font, Font Style, and Size. I kind of know why, but from what browsing of the styles xml file I've done there doesn't seem to be any way to fix this.
#Notepad++ font code
Looks like it's either code or plain text, never both.Įdit: Thought I'd add, comments are monospaced, but code isn't. For all of it's language and theme options, I have yet to find a way to have it actually change fonts with file extension. Monospaced whitespace is kind of important for coding. Azulia has a list of some of the most popular from the web, even though its list is biased.Over four years later, and this is still a problem, and still the number one reason I don't want to use notepad++ as a code and text editor. You’ll probably find that only a few of them are useful, though. The easiest way to go about changing the colors, however, is to set a different theme. This process doesn’t clear other settings, it just essentially disables all custom settings except for global override for each particular categorized checkbox. Each one will completely override all other styles set in the configuration or theme only to display what the Global override is set to. In the Global override style, there is a total of 8 checkboxes. Note the background color is the canvas and the foreground color is the text color. And both the background and foreground colors can be changed. The font family and size can be adjusted as well. Click on the Settings menu and choose the Preferences. You can type some text or open a text file to see the changes through it.
#Notepad++ font windows
You can set for things to be bold, italic or underlined. Check out the below steps for making the tab font bigger or smaller: Open the Notepad++ by double-clicking on the shortcut or searching through the Windows search feature. The Global override is a universal mask that can be set to control the font style and background colors regardless of what language or file type you are working with.Ĭustomizing the style is pretty straightforward once you look at it.Once your notepad has been saved as a particular file type, Notepad++ will then recognize its language and apply the Language-specific style to it. The Default style is what will be used when you open a new notepad and begin typing.These are the Default Style and the Global override. If you want to immediately customize things, there are two main (separate) styles to look at.

This option is found under Settings > Style Configurator. In Notepad++ the fonts and colors are controlled by the built-in Style Configurator.
