/P8-Syntax-Highlighter

A highly token optimized PICO-8 lua syntax highlighter developed in PICO-8. Original version in just 356 tokens!

Primary LanguageLua

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.

  • Original - 356 Tokens
  • With String Delimit - 397 Tokens

Examples

highlighter_1 highlighter_2