highlight-bash-syntax
highlight bash syntax with html
example
given a shell script:
#!/bin/bashecho hello > cool.txtecho 'ok <3'
and a program to turn it into html:
var highlight =var fs =var src = fsconsole
output:
#!/bin/bashecho hello > cool.txtecho 'ok <3'
api
var highlight =
var html = highlight(src)
Return a string of html
from a string of bash src
.
install
npm install highlight-bash-syntax
license
BSD