function list: I made an XML for one liner HTML comments
-
I Just wanted to share the XML for HTML comments.
Sometimes I have long static HTML files that need to be structured with one liner comments. Since I am german, I added german Umlaute like äöüÄÖÜ and ß.
To enable HTML for the function list, you have to edit overrideMap.xml in
C:\Program Files\Notepad++\functionList- Add HTML as user defined language
<association id="html.xml" userDefinedLangName="HTML" />
- Make new XML file, save it as html.xml and copy the following code in it. The copy the xml file in C:\Program Files\Notepad++\functionList
<?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <functionList> <parser displayName="HTML" id="html_comment" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)"> <function mainExpr="\x3C!-- [A-Za-z\xe4\xf6\xfc\xc4\xd6\xdc\xdf#' -_,.!=?]* --\x3E"> <functionName> <nameExpr expr=" \K[A-Za-z\xe4\xf6\xfc\xc4\xd6\xdc\xdf#' -_,.!=?]* " /> </functionName> </function> </parser> </functionList> </NotepadPlus>