vim2html
v0.0.12
Published
Create syntax-highlighted HTML from source code using Vim's 2html script
Downloads
13
Readme
vim2html
Create syntax-highlighted HTML from source code using Vim's 2html script
vim2html = require 'vim2html'
opts = {
syntax: 'coffee'
colorscheme: 'jellybeans'
number_lines: 0
use_css: 0
pre_only: 1
}
# highlight some string, write result to result.html
vim2html.highlightString "var x={() ==> ERRo'neous';function <3", 'result.html', opts, (err, asFilename) -> ...
# highlight the file containing the following statement
vim2html.highlightFile __filename, null, opts, (err, asString) -> ...