P8 Syntax Highlighter
An advanced PICO-8 lua syntax highlighter in just 356 tokens! Call highlight(code)
to receive a printable p8scii string. All the colors can be modified by changing their corresponding p8scii color at the top of the script.
Check it out on | Github
Examples:
All examples generated with P8 Syntax Highlighter
![](/media/50899/highlighter_1.png)
![](/media/50899/highlighter_2.png)
If you end up using this, please share it here!
Updates:
- Implemented string delimitting (or however that's spelt) [397 Tokens]
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/92447/Logo.png)
Wow, impressive!
Can you really call it advanced if you can't delimit strings like this? [==[ foo ]==]
:P
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/50899/Fe-ZAIiWAAAuOoh~2.jpg)
@Soupster imma be honest, I've never seen that B)
But I imagine it'd be easy to add support. I only started working on this earlier today, but I'll definitely see to adding anything I might've missed
- (Edit) Got it working, just need to optimize :3
- (Edit 2) Updated the cart :D
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/92447/Logo.png)
It is a pretty obscure Lua feature, but now you can really call it advanced! :P
[Please log in to post a comment]