Skip to content

highlight language with highlight.js but in terminal(use in node.js).

Notifications You must be signed in to change notification settings

jetzhliu/highlight-term.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlight-term.js

highlight language with highlight.js but in terminal(use in node.js).

usage

api

var hljs = require('highlight-term.js');
console.log(hljs.highlight('js', 'function fnName() {}').value);

cli

# npm install with -g
npm install highlight-term.js -g

# use in term
# cat-hl <filename> [language]
hl package.json json
hl index.js js

screenshot

js format json format

About

highlight language with highlight.js but in terminal(use in node.js).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published