Skip to content

User Defined Language Support

Gary Wang edited this page Jul 25, 2026 · 3 revisions

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.

User Defined Language

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.

image

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 .

KSyntaxHighlighting Compatibility

Note that not all KSyntaxHighlighting features are supported for now. At the time of writing, the following KSyntaxHighlighting features are supported:

  • text-color from theme for text-styles
  • bold
  • italic
  • underline
  • 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-color for custom-styles
  • background-color
  • selected-text-color, selected-background-color
  • strike-through
  • Spell checking information

Clone this wiki locally