lua-console-syntax-highlighter
v1.0.4
Published
Console syntax highlighter for Lua 5.1 and Luau.
Downloads
18
Maintainers
Readme
lua-console-syntax-highlighter
Console syntax highlighter for Lua 5.1 and Luau.
Install
Install with npm:
$ npm install lua-console-syntax-highlighter
Usage
const{highlight}=require('./main');
const inp=require('fs').readFileSync('input.lua','ascii');
console.log(highlight(inp,'onedarkpro'));
console.log(highlight(inp,'monokaipro'));
Themes
- onedarkpro
- monokaipro
Huge shoutout to BoatBomber for the original lexer.