Hacker News new | ask | show | jobs
by yaix 5205 days ago
I hoped for a command line option. Isn't there some plugin for sed maybe? Like sed something <code.py >code.html
1 comments

vim -f +'syn on' +'run! syntax/2html.vim' +'wq' +'q' [file]

produces file.html

Or, use perl's Text::VimColor http://search.cpan.org/~rwstauner/Text-VimColor-0.14/lib/Tex...