-
Notifications
You must be signed in to change notification settings - Fork 212
Customize Schemes
Click menu "Schemes" -> "Select Scheme..." or "Select Scheme" toolbar button.
Click menu "Schemes" -> "Favorite Schemes...".
When "Auto-select by filename extension." is enabled, filename extension is matched in following order:
- Text File
- 2nd Text File
- Favorite schemes, in the order configured on this dialog
- Other general schemes, in alphabetical order (case insensitive)
Because Notepad2 supports many schemes, some of them you may never use, it's better to select your own favorite schemes (maximum 31). You can click checkbox before each scheme to add or remove it from Favorite Schemes.
Drag & drop is supported on scheme tree, you can drag schemes into Favorite Schemes, or reorder existing favorite schemes by drag & drop.
Click menu "Schemes" -> "Customize Schemes..." or "Customize Schemes" toolbar button.
Drag & drop is supported on scheme tree, you can copy style settings to other styles by drag & drop.
The "Style format" text on Customize Schemes is copyable.
Style format:
font:Name; size:[+|-]nn.mm; weight:nnn; bold; italic; underline; strike;
charset:dd; locale:Name; case:[Upper|Lower|Camel];
fore:#ffffff; back:#bbbbbb; alpha:aa; outline:aa; eolfilled;
Style | Description |
---|---|
font | font face name, auto set after choosing font. |
size | font size in point like 11.5, auto set after choosing font. When prefixed by plus or minus sign, the value is a relative value to font size set in scheme's Default style. See below for other meanings in global styles. |
weight | font weight, auto set after choosing font. see lfWeight at https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfonta for typical values (some of them don't apply to CJK fonts). |
bold | bold font, auto set after choosing font, equals to weight:700 . |
italic | italic font style, auto set after choosing font. |
underline | underline font style, auto set after choosing font. |
strike | strike through font style, auto set after choosing font. |
charset | font character set, auto set after choosing font. See lfCharSet at https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfonta
|
locale | -- |
case | -- |
fore | -- |
back | -- |
alpha | -- |
outline | -- |
eolfilled | -- |
Styles are applied in inherited order:
- One of
Default Code Style
andDefault Text Style
fromGlobal Styles
. - The Default style for current Scheme,
- Other individual styles in current scheme.
Following table shows global styles, individual styles are defined by it's lexer.
Style | Description |
---|---|
Default Code Style | global styles when Scheme > Use Default Code Style is checked. |
Default Text Style | global styles when Scheme > Use Default Code Style is not checked. |
Margin and Line Number | Style for line number margin. |
Matching Brace | Style for paired braces, brackets or angles. |
Matching Brace Error | Style for unpaired braces, brackets or angles. |
Control Character | Set font size for control character (drawn as white on black or black on white based on default foreground and background colors.). |
Indentation Guide | Set foreground color indentation guide dash line. |
Selected Text | -- |
Whitespace | Set size and foreground color for space (drawn as dot) and tab (drawn as right arrow). |
Current Line | -- |
Caret | Set foreground color for caret. Caret style is set via View -> Caret Style. |
Long Line Marker | Set foreground and background colors for long line marker. |
Extra Line Spacing | Set extra ascent to size - size/2 , extra descent to size/2 . This setting has no effect for ANSI Art. |
Folding Marker | -- |
Mark Occurrences | -- |
Fold Ellipsis | Style for ellipsis draw after code folding. |
IME Indicator | Set foreground color for inline IME indicators. |
Bookmark | -- |
CallTips | -- |
TBD.
See changes on adding GN build configuration file (issue #164, c8a291b).