On Tuesday, 23 April 2013 17:02:12 UTC+2, Ben Fritz  wrote:
> On Tuesday, April 23, 2013 9:30:52 AM UTC-5, A HV wrote:
> > Hello all,
> > Is it possible and how to set up a Color Scheme for HTML documents?
> > I use curl | vim to open HTML URLs by Vim but it is in HTML code. Is it 
> > possible to switch between the HTML code and formated document in Vim? Like 
> > eLinks does for saving HTML pages like formated document :).
> > Thanks
> > Anton
> 
> You are NOT asking for a color scheme. I don't know why you would have 
> thought that.
> 
> You're asking Vim to parse HTML like a web browser. Vim does not and probably 
> can not do that.
> 
> For VERY simple HTML documents it might be possible to hack together a syntax 
> script using the 'conceal' feature to hide the HTML tags and format text with 
> bold, italics, and underline. It MIGHT be further possible to colorize the 
> text. But you probably cannot support all possible 24-bit colors and their 
> various combinations with bold, underline, italic, etc. with a static syntax 
> script.
> 
> If you're just trying to view the text, you can either use syntax 
> highlighting to conceal all HTML tags (and maybe replace some common 
> character entities with their character), or pipe it through a text web 
> browser like eLinks on the way to Vim.

PS eLinks has feature "Toggle HTML/Plan" actually I am looking such feature for 
Vim. 

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to