Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add support for Pico-8 in Notepad++'s function list
<!--
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
You can’t perform that action at this time.