Skip to content

Commit

Permalink
User-defined Keywords: GUI limitation
Browse files Browse the repository at this point in the history
limited to 30kB in GUI, but config file allows >1MB

see https://community.notepad-plus-plus.org/topic/26433/html-user-tagsx-user-attributesx
  • Loading branch information
pryrt committed Dec 6, 2024
1 parent 9bc0622 commit 61db831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ _Note_: There is no specific Language entry called "Normal text" or "Plain text"

The right half of the dialog is where you edit the colors and fonts for the selected Language and Style. The title-text for the right side will list which language and style are selected. The Colour Style allows you to choose the Foreground or Background color by clicking on the colored box. You can also make the style's Foreground or Background color ignored, by right-clicking on the colored box (you'll see the additional diagonal stripes on the colored box) - in this case the default background/foreground color will be used. The Font Style allows you to pick the font, size, and bold/italic/underline settings. If Font name or Font size are left blank, they will inherit from the Global Styles: Default Style. If you right-click a color, you will see diagonal stripes across the color, indicating it is set to "inherit", meaning that it will take that color from the Default Style. Under the "Language: Global Styles" with "Style: Global override", there are also a series of checkboxes for "Enable global xxx", which will mean that Notepad++ will use the Global override setting for that attribute, rather than using the per-language styling settings for that attribute.

Some language/style combinations (like Perl > INSTRUCTION WORD) will additionally have a list of default keywords (not editable) and user-defined keywords (which allow you to add new keywords to apply this style to).
Some language/style combinations (like **Perl > INSTRUCTION WORD**) will additionally have a list of default keywords (not editable) and user-defined keywords (which allow you to add new keywords to apply this style to). The GUI is limited to allowing you to enter about 30,000 bytes in the user-defined keywords box; that's enough for around 3,000 keywords in each user-defined keyword list, depending on the length of your keywords, which should be sufficient for most users. If that is not sufficient for you, you can actually edit the [`styler.xml` or other theme config file manually](../config-files/#highlighting-schemes-stylersxml), where you can enter more characters (following the advice for [editing config files](../config-files/#editing-configuration-files), of course), then save the file and restart Notepad++; once you enter more than 30,000 bytes and restart, the Style Configurator's user-defined keywords field will _show_ your keywords if you scroll through, but do not try to _edit_ your longer-than-usual list in the GUI -- if you need to edit the list again, go back to the manual edit and save and restart. Anecdotally, success has been reported with adding more than 100,000 keywords with more than 1,000,000 bytes total by manually editing the config file; you might even succeed getting more than that, depending on your memory and system performance.

The Save & Close button will save the settings and close the dialog. The Cancel button will exit the dialog without updating the style settings. The Transparency checkbox will allow you to apply transparency to the Style Configurator dialog box.

Expand Down

0 comments on commit 61db831

Please sign in to comment.