Tuesday, May 8, 2012

Re: Highlighting block of text

On 05/08/12 17:45, Gary Johnson wrote:
> On 2012-05-08, Richard wrote:
>> Well, I spoke too soon. What I wanted was to highlight
>> multiple block with different colors *at the same time*
>> Seems that match only works on a single pattern at a time.
>
> Use matchadd() instead.

Hopefully made easier by the code I gave which builds up a regexp
string that is then simply evaluated, which could instead just be
passed to matchadd() with some appropriate highlighting-group
designation.

-tim


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