SYNTAX-HIGHLIGHTING for KMM-files for NotePadPlus NPP++
UserDefineLang UDL for K-Meleon macros
Finally managed to get that thing ready for upload, after working since years with it!!
An editor with syntax highlighting makes readability so much better, deciphering the code, and is easier on the eyes too, at least on mine (not allergic to colors ;-))
And it helps **enourmously** to find simple macro typos. To see for example at one click which nested brackets are ending where exactly, even ten pages lower, or where a string is broken etc.
Sadly I had no clue for YEARS such magical things even exist, or it would have saved me countless hours and NERVES just trying to find pesky little typos.
Styling works nicely, even with older NPP 6.4, just have no autocomplete lists yet. But it's possible to open the XML-file and set its "language" to KMM too, then matching commands pop up automatically when starting to type.
The look can be *different* on other computers with other fonts and pixel size etc.
The global NPP font also matters (mine is Verdana-10).
This file comes predefined for Verdana, Arial and ComicSansMS (size 9, green comments)
Font SIZE is only defined for comments, to get them SMALLER as default font.
All easy to change in the XML file.
(If anyone struggling with huge line-height, as I did: the culprit is the largest ELEMENT in GLOBAL NPP style!)
Attached are 2 versions, both contain all KM1.5...KM76 commands:
- one for KM76, with deprecated stuff marked red (to check older macros)
- one for KM 1.5....KM76, also all red that's deprecated in
KM76, plus all violet that did not yet exist in KM1.5. A little bit KM-version info is contained inside this file too.
Recommend to keep a copy of this original file, at least of Nr2 due to the KM-version info inside.
INSTALLATION: N++ Menu Language / Define your Language... /
Import... / Restart N++
Howto Macros:
http://kmeleonbrowser.org/wiki/MacroLanguage2?switchlang=en
http://kmeleon.sourceforge.net/wiki/MacroLanguage2
http://kmeleon.sourceforge.net/wiki/CommandIds
http://kmeleon.sourceforge.net/wiki/PluginCommands
Howto NPP UserDefineLangs:
https://npp-user-manual.org/docs/user-defined-language-system/
https://ivan-radic.github.io/udl-documentation/
Edited 2 time(s). Last edit at 04/22/2023 01:22AM by siria.