Skip to content

Commit fe05a04

Browse files
committed
fix typos
per #457
1 parent f20b1cc commit fe05a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/user-defined-language-system.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Ivan Radić has created the definitive guide to the nuts and bolts of UDL versio
5353

5454
#### Unicode Support
5555

56-
The UDL interface and underlying lexer was designed in the early days of Notepad++, before good Unicode support was implemented, so the User Defined Language system does not fully support Unicode characters beyond what's available in the current ANSI codepage (255 characters). Unicode can be used in some locations, like the keywords and the Numbers-style Extras 1; but many other places, like Operators & Delimiters, or Comments, or Folding, do not work with characters beyond codepoint 255. If Unicode characters in your operators or delimiters is a requirement for you, you should consider using a existing plugin (such as a scripting plugin or [EnhanceAnyLexer](https://github.com/Ekopalypse/EnhanceAnyLexer/)) to add _additional_ text highlighting based on the active langauge, or write your own plugin to add highlighting in any way you choose. (Also, if you have the coding skills necessary to update Notepad++'s codebase to allow UDL to use Unicode, without causing any regressions, you might consider submitting a PR, as it could close [multiple](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6014 "#6014") [open](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8562 "#8562") [issues](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12161 "#12161").)
56+
The UDL interface and underlying lexer was designed in the early days of Notepad++, before good Unicode support was implemented, so the User Defined Language system does not fully support Unicode characters beyond what's available in the current ANSI codepage (255 characters). Unicode can be used in some locations, like the keywords and the Numbers-style Extras 1; but many other places, like Operators & Delimiters, or Comments, or Folding, do not work with characters beyond codepoint 255. If Unicode characters in your operators or delimiters is a requirement for you, you should consider using an existing plugin (such as a scripting plugin or [EnhanceAnyLexer](https://github.com/Ekopalypse/EnhanceAnyLexer/)) to add _additional_ text highlighting based on the active language, or write your own plugin to add highlighting in any way you choose. (Also, if you have the coding skills necessary to update Notepad++'s codebase to allow UDL to use Unicode, without causing any regressions, you might consider submitting a PR, as it could close [multiple](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6014 "#6014") [open](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8562 "#8562") [issues](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12161 "#12161").)
5757

5858
### UDL Styler
5959

@@ -68,7 +68,7 @@ Each of the categories of keywords, folding, operators, comments, and the like h
6868
- If you right click on the color, it will toggle diagonal stripes through the color box. If those stripes are there, this still will not set its own color, and instead inherit from the UDL's **Folder & Default > Default Style**. (The UDL's Default Style will inherit from the active theme's **Global Style > Default Style** if it has the stripes.)
6969
- `☐ Transparent`: If you toggle this checkmark under each of the colors, it will mark the diagonal stripes just like a right click for that color (and a right click on the color box will toggle this checkmark), and carries the same meaning, where this color will inherit from the UDL's Default Style, or the UDL Default Style will inherit from the theme's Default Style. (Checkmark added in v8.1.9.1.)
7070
- Nesting Options: For the comment styles and delimiter styles, you can control "nesting".
71-
- Nesting indicates what can be "contained within" the active style. Since delimiters and comments define a range of text that's inside, normally _everything_ inside that will be colored according to the delimiter's style. However, if you checkmark Nesting for a given category of delimiters, keywwords, comments, or numbers, it means that the category selected will get the color defined by that category's style, rather than being colored like the rest of the category it's contained within.
71+
- Nesting indicates what can be "contained within" the active style. Since delimiters and comments define a range of text that's inside, normally _everything_ inside that will be colored according to the delimiter's style. However, if you checkmark Nesting for a given category of delimiters, keywords, comments, or numbers, it means that the category selected will get the color defined by that category's style, rather than being colored like the rest of the category it's contained within.
7272
- That may be confusing. Here is an example: Your UDL sets numbers to have a red foreground, and sets the Delimiter 1 = Open:`(` / Close:`)` to have a green foreground. Normally, this would mean that numbers between parentheses, like `(5)` would be green, because they are inside the Delimiter 1 pair. But if Delimiter 1's style has a checkmark for `☑ Numbers`, then any numbers between the parentheses will be red, while the parentheses themselves (and other text between the parentheses) will be green.
7373
- You can have as many or as few of the categories set for nesting in each of the delimiter and comment styles.
7474
- You cannot enable nesting "inside" keywords, operators, or folding categories, because you cannot have another piece of text "inside" of a keyword or operator or folding word or symbol.

0 commit comments

Comments
 (0)