New ebuild for vim2html, a program to generate pretty colorised HTML output using .vim syntax files and also, optionally, using htmltidy. I've included htmltidy as a dep, because certain parameters to the script need it.
From the authors page, "vim2html is a small shell program that will export any Vim-editable file into well-formed HTML - simulating a Vim session. Fully supports Vim colorization (customizable) and Syntax Highlighting. This program provides an excellent method of presenting your programs/HTML/scripts/etc. on the web."
I reckon app-text is best for this because it's not actually a vim plugin.
Thanks very much,
Created attachment 30345 [details, diff]
Is there any advantage to this over the :TOhtml supplied with Vim?
- It can use htmltidy for cleaning HTML output (however I suppose what's generated by :TOhtml is hardly bad HTML)
- It doesn't require a GUI
- Err.. I never knew :TOhtml existed ;)
Well, you can do `vim -c ':TOhtml' -c ':wqa' blah.c ` to avoid having to fire up the editor properly, and then run Tidy on the generated file...
I'm inclined to close this bug as WONTFIX, on the grounds that there's an existing solution which is pretty much the same, and that adding unnecessary packages to portage is discouraged. Feel free to try to persuade me otherwise if you think there's a considerable advantage to this package over a three line shell script.
Not at all, that sounds perfectly reasonable. I didn't actually have any idea about :TOhtml in the first place, so at least I've learnt something :)