0.0.12 • Published 9 years ago

vim2html v0.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

vim2html

Build Status

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) -> ...
0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago