-
Notifications
You must be signed in to change notification settings - Fork 0
User Defined Language Support
Since Pineapple Notepad 0.8.2, we introduced the ability to add User Defined Language, or say, custom language highlight support. This Wiki will cover about the related usage and details.
Since 0.8.2, we offered the ability to apply any KSyntaxHighlighting-based User Defined Languages. You can browse all existing built-in languages offered by KSyntaxHighlighting by opening the "Select Custom Language Definition" dialog. Either from menu: "Language > User Defined Language > Apply Custom Language Definition...", or by double-clicking the language name on the status bar. You'll need to uncheck "Show my custom definitions only" checkbox to show all supported languages.
To add your own custom language definition support, simply place the custom language syntax .xml file to the syntax folder. You can open the folder by using the "Language > User Defined Language > Open User Definition Folder..." menu. To learn about how to create your own syntax highlighting or language definition file, please read this KDE's documentation: Working with Syntax Highlighting
.
Note that not all KSyntaxHighlighting features are supported for now. At the time of writing, the following KSyntaxHighlighting features are supported:
-
text-colorfrom theme fortext-styles bolditalicunderline- Region-based folding
- Indentation-based folding (since 1.0.0-beta1)
The following KSyntaxHighlighting features are currently not supported, some of them might be supported in future updates:
-
text-colorforcustom-styles background-color-
selected-text-color,selected-background-color strike-through- Spell checking information