0.0.12 • Published 8 years ago

vim2html v0.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago