On Fri, May 11, 2012 at 09:58:02AM +0100, Tarlika Elisabeth Schmitz wrote: > On Thu, 10 May 2012 19:25:05 -0700 (PDT) > Ben Fritz <[email protected]> wrote:
> >On Thursday, May 10, 2012 5:34:35 PM UTC-5, Tarlika Elisabeth Schmitz > >wrote: > >> I noticed TOhtml converts URLs to <a> links. Can this be avoided? > >> > >> I am converting a markup language file, which contains URLs. In vim, > >> these are displayed with particular syntax highlighting. > >> > >> In my HTML output I would simply like them to have the same > >> highlighting as in vim. Nor do I want them to be clickable links. But > >> since they have been converted to links, they are displayed in the > >> browser's default link style. > >> > > > >What if they were clickable links with the same highlighting as in > >Vim? I'd prefer not to add yet another option if I can avoid it. > Does the built-in TOhtml convert links? > 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.) > 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 appreciate that you don't want to bloat the plugin with to many > options. > I will use TOhtml occasionally to generate code snippets for the web. I > can take the links out manually or write a script to remove the links. for me, if i am looking at vim snippets in a browser and there are links, i would expect to be able to click and go to the target of the link, and think it odd if it looks like a link but isn't -- you really want to unlink the links? sc -- 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
