Skip to content

Instantly share code, notes, and snippets.

@andygreen1
Last active August 1, 2016 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andygreen1/31fa0541dba9a773f6de6919acf45737 to your computer and use it in GitHub Desktop.
Save andygreen1/31fa0541dba9a773f6de6919acf45737 to your computer and use it in GitHub Desktop.
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