Thursday, September 16, 2010

Re: can't highlight background of entire region, only where text is

On Sep 16, 5:16 am, Stahlman Family <brettstahl...@comcast.net> wrote:
> Christian Brabandt wrote:
> > I hear a lot about the txtfmt plugin, which seems to be very advanced.
> > But I don't know, whether it can help in your scenario, when you want
> > to color whole lines. Brett, probably knows better.
>
> The Txtfmt plugin can be used to change the background color (as well as
> foreground color and format attributes) of arbitrary regions of text. As
> Christian correctly points out, however, the syntax mechanism operates
> only on actual *characters*. As far as I know, the only way to do what
> you're trying to do involves the addition of trailing whitespace (whose
> background color can be set). Of course, you may not wish to have such
> whitespace in your source files...
>

Brett, Christian --

Thanks for the info. I had checked out txtfmt and, as you say, it
doesn't quite do what I wanted. Adding whitespace isn't a good
solution for me either, so I'll just live with Vim's limitation.

Regards,

Herb
.

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