Last active
August 1, 2016 02:55
-
-
Save andygreen1/31fa0541dba9a773f6de6919acf45737 to your computer and use it in GitHub Desktop.
Add support for Pico-8 in Notepad++'s function list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Adds support for the Function List window in Notepad++ (tested with v6.9.2) | |
This file is normally located at C:\Users\<username>\AppData\Roaming\Notepad++\functionlist.xml | |
You could probably use this to support general lua functions too, but I haven't tested that. | |
--> | |
<NotepadPlus> | |
<functionList> | |
<associationMap> | |
<!-- | |
Existing stuff | |
... | |
--> | |
<association langID="23" id="pico8_function"/> | |
</associationMap> | |
<parsers> | |
<!-- | |
Existing stuff | |
... | |
--> | |
<parser id="pico8_function" displayName="Pico-8 Function"> | |
<function mainExpr="^[\t| ]*function[\t| ]*.*?\)" displayMode="node"> | |
<functionName> | |
<nameExpr expr="^[\t| ]*function[\t| ]*\K.*\)"/> | |
</functionName> | |
</function> | |
</parser> | |
</parsers> | |
</functionList> | |
</NotepadPlus> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment