vim2html

0.0.12 • Public • Published

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 __filenamenullopts(err, asString) -> ...

/vim2html/

    Package Sidebar

    Install

    npm i vim2html

    Weekly Downloads

    1

    Version

    0.0.12

    License

    MIT

    Last publish

    Collaborators

    • kba