On Friday, May 11, 2012 3:58:02 AM UTC-5, Tarlika Elisabeth Schmitz wrote:
>
> Does the built-in TOhtml convert links?
>
Yes, that was in there before I took over maintenance.
> I would argue that the link conversion isn't what I'd expect of TOhtml.
> I expected TOhtml to simply convert what I see in vim to HTML - a code
> snippet that can be embedded in a web page, with the possibility of
> copy/paste. (Otherwise, for looks, one could just use a screenshot.)
>
I admit I was a little surprised to see it, but it's been there for a long
time so I'm hesitant to take it out entirely. It is quite jarring to have
the default browser style applied to such links and the Vim style applied
to everything else.
>
> Just applying the vim style to the <a> tag (instead of or in addition
> to an on/off option), I don't think would be that straightforward
> either.
> For example, my style is a purple fg with NO border. The generated vim
> style has no border attribute because normally it doesn't have to
> override a default style with border. You would need a
> "border:none !important". I just tried this on the fly in FF 3.5 +FF
> 9 and the no-border is ignored despite the "!important". It takes the
> colour but still displays with border.
>
>
I haven't see a browser apply a border. Normally they apply an underline,
which can be removed with text-decoration: none; (no !important required).
--
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
Friday, May 11, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment