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.

Hello Ben Fritz,

I make notes for my studies (for example the way like Vim help organized), Why 
HTML, it is because a lot of information is on-line and HTML has much more 
possibilities than text. I would like to get the information in native format 
(HTML or other in case of another language) in Vim for editing and the same 
time formated to be able to read it like normal text document in Vim. Something 
like interactive notebook.

I had set up color scheme for Vim by Yakov Lerner.
ScrollColors : Colorsheme Scroller, Chooser, and Browser 
http://www.vim.org/scripts/script.php?script_id=1488
It works well, I am looking for the second part of my interactive book a switch 
to get HTML to formated text feature. I will check for the 'conceal' feature 
and hide, show by color possibility.
Thank you for advise.   

Anton

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