Custom Schemes

Notepad3’s predecessors introduced styling schemes, a very clever and powerful way to style text based on its purpose. Notepad3 builds further on this feature, adding a more natural style hierarchy and a redesigned user interface.

Schemes are accessible through View → Customize Schemes:


Scheme Hierarchy:

  1. {Default Text or 2nd Default Text}* / Default Style
  2. {Default Text or 2nd Default Text}* / {all other styles}
  3. {Current Scheme} / Default
  4. {Current Scheme} / {all other styles}

*As determined by the View2nd Default Scheme setting

Styles are applied in the above order, and are inherited and cumulative. When a style is applied, identical settings from the new style overwrite settings that were applied from earlier styles. Examples of style settings include:

  • Font Name
  • Font Style
  • Font Size
  • Font Color

NB: in the absence of a user-set Global Default Font (Default Text / Default Style), Notepad3 uses Consolas, Regular, 10. If this font is not present, it uses Lucida Console, Regular, 10.

For example, in a brand-new installation of Notepad3, the resultant style for a VBScript keyword is determined by applying the following styles in the indicated order:

Scheme: Style: Definition: Result:
1 Default Text Default Style {none} Consolas, Regular, 10
2 VBScript Default {none} Consolas, Regular, 10
3 VBScript Keyword ​​bold; fore:#B000B0 Consolas, Bold, 10, foreground color #B000B0

Notepad3 Customize Schemes Keyword
For font sizes, you can specify one of the following:

  • An absolute size value (e.g. size:12)
  • A relative size value (e.g. size:+2)

The first option behaves as detailed above, overwriting any previous font size.

The second option applies its modifier to the cumulative result of the previous style. For example, consider the following:

Scheme: Style: Definition: Result:
1 Default Text Default Style {none} Consolas, Regular, 10
2 VBScript Default size:+2 Consolas, Regular, 12
3 VBScript Keyword bold; size:-2; fore:#B000B0 Consolas, Bold, 10, foreground color #B000B0

Notepad3 Customize Schemes Keyword

The font selection dialogue displays the resultant font style and size. Its title bar displays the style being edited. If the style is dependent upon other styles higher up in the hierarchy, the style name is surrounded by plus signs:

Notepad3 Customize Schemes Font Selection

When using the Font button, how does Notepad3 determine whether to use an absolute or a relative value?

  • If the font size is currently undefined, it uses a relative value (based on the previous style)
  • If the font size currently has an absolute value defined, it uses an absolute value
  • If the font size currently has a relative value defined, it uses a relative value

Sharing is Caring!