Tuesday, July 27, 2010

Should 2html generate valid CSS by default?

I've taken over as maintainer of the TOhtml plugin during Vim 7.3 development.

Something that's bugged me a little for some time about 2html, is that
the current default is to NOT use CSS, but rather use old-style
<font>, <b>, <i>, and other tags for markup.

The :help says:

> By default, HTML optimized for old browsers is generated. If you prefer using
> cascading style sheets (CSS1) for the attributes (resulting in considerably
> shorter and valid HTML 4 file), use:
> :let g:html_use_css = 1

At this point, I'd consider "old browsers" to be Internet Explorer 6
and the like. I think the time has come to default g:html_use_css to
true, by including this line in the tohtml.vim plugin file.

A user could still disable this option by unletting it manually, or in
an after/plugin file.

I can personally think of no compelling reason not to do this. But, to
avoid offending a lot of people out of my own ignorance...

Are there any good reasons to keep the default behavior of generating
markup that does not use basic CSS1? Please respond if you have
concerns.

I do plan to maintain the old non-CSS markup generation, at least to
some extent. Some features, such as the diff view added in 7.3, will
be less pretty, and others such as dynamic folding will be completely
unavailable, but I hope to keep the basic functionality working and
probably even fix a few existing bugs.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: