I normally use VIM to edit my codes and convert them to HTML by using TOhtml command. The only thing I don't like is that the converted HTML does not have css class style definitions. I am not sure if there is tool to convert codes to HTML with css, or I can use additional tool or command to convert HTML HTML with css?
-
1I think I got the answer. Type the commman: let html_use_css=1. Then TOhtml will create a html with css classes.David.Chu.ca– David.Chu.ca2010-05-26 22:35:13 +00:00Commented May 26, 2010 at 22:35
-
1It is perfectly acceptable to answer your own question on stack overflow if you figure out a solution on your own.David Winslow– David Winslow2010-05-28 03:35:51 +00:00Commented May 28, 2010 at 3:35
-
You can even accept your own answer. And maybe even get yourself a badge into the bargain. stackoverflow.com/badges/14/self-learnerjohnsyweb– johnsyweb2010-05-31 14:09:30 +00:00Commented May 31, 2010 at 14:09
-
Related: How to convert a source code file into HTML? at Vim SEkenorb– kenorb2015-02-19 15:20:54 +00:00Commented Feb 19, 2015 at 15:20
Add a comment
|
1 Answer
Here I copy my comments as my answer:
Type the command:
let html_use_css=1
Then
:TOhtml
it will create a html with css classes. For more information and other options for TOhtml command, you can get help by:
:help TOhtml
1 Comment
Evgeni Sergeev
There should not be a dot after the
:let html_use_css=1