lua-console-syntax-highlighter

1.0.4 • Public • Published

lua-console-syntax-highlighter NPM monthly downloads NPM total downloads

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'));

image

Themes

  • onedarkpro
  • monokaipro

Huge shoutout to BoatBomber for the original lexer.

Package Sidebar

Install

npm i lua-console-syntax-highlighter

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

21.5 kB

Total Files

3

Last publish

Collaborators

  • snowyshiro