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>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login