Wednesday, July 28, 2010

Re: Should 2html generate valid CSS by default?

Benjamin Fritz wrote:

> 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.

The 7.3 release would be a good point to flip the default. Those who
use somethink like links to view the HTML will easily see that they need
to set an option. While most users don't have a hint that enabling CSS
will make the output much nicer.

--
"I've been teaching myself to play the piano for about 5 years and now write
most of my songs on it, mainly because I can never find any paper."
Jeff Lynne, ELO's greatest hits

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
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:

Post a Comment