Saturday, June 23, 2012

Re: TOhtml - URL to link conversion

Hello Ben,
Sorry about the delay in replying.


On Mon, 14 May 2012 09:31:23 -0700 (PDT)
Ben Fritz <fritzophrenic@gmail.com> wrote:

>TOhtml has a lot of options, I'd like to avoid adding more for changes
>which aren't too jarring. I'm not sure from your statement what you
>think about links that are:
>
>1. real links
>2. normally styled the same as in Vim, i.e. not bright blue and
>without an underline
>3. get a nice blue underline (and maybe text) when ":hover" is active

2) with or without underline as per vim colour scheme

3) As you can't derive the hover style from the vim colour scheme, that
is rather tricky. Much in the same way as it is not a good idea to hard
code colours in a vim syntax, I find it unadvisable to specify a new
hover colour as you do not know how it will fit with the vim scheme,
or worse, might have little visibility.

The only way to derive a hover effect from vim would be either
- to invert fg/bg
- choose a different bg such as StatusLine bg


Have you thought about links in comments sections? They have the
comment style in vim. If you want to be faithful to the vim display,
you need to apply comment style.

>
>Probably I could add the underline when it has focus as well for those
>navigating using the keyboard only or other "non-mouse" browser users.
>
>Would this be a good compromise or do you want your links to stand out
>all the time?

After all this discussion about links or no links, my first use case
actually required a link! :
http://my.mutterings.co.uk/technology/openstreetmap-with-location-marker

I just did a quickie and split the TOhtml() output into HTML/CSS by
hand.


--

Tarlika Elisabeth Schmitz, Scotland
http://my.mutterings.co.uk/

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