Skip to content

Instantly share code, notes, and snippets.

@andygreen1
andygreen1 / langs.xml
Last active April 2, 2020 00:53
Hack Pico-8 syntax highlighting into Notepad++
<!--
Adds Pico-8 syntax highlighting in Notepad++ by sacrificing regular Lua syntax highlighting -
I couldn't figure out how to add it as a custom language.
NB - some keywords that were added after ~0.1.9 are missing.
This file is normally located at C:\Users\<username>\AppData\Roaming\Notepad++\langs.xml
-->
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
@andygreen1
andygreen1 / testcase.p8
Last active October 28, 2017 22:56
0.1.11 test cart
pico-8 cartridge // http://www.pico-8.com
version 8
__lua__
-- dumps user-editable cart memory to a log
-- no need to edit anything, just run it in 0.1.10c & 0.1.11
-- then diff log_0.1.10c.p8l & log_0.1.11.p8l.
-- read values don't always match in the sfx area of memory
-- lazy man's version detector
logname = tostr == nil and "log_0.1.10c" or "log_0.1.11"
@andygreen1
andygreen1 / functionlist.xml
Last active August 1, 2016 02:55
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>