> Adriaan wrote:

> > I've a text which is tagged with an XML/HTML like syntax, like this:
> >
> > Lorem ipsum <A> dolor sit amet, consectetur adipisicing </A> elit, sed
> > <B> do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
> > enim ad minim veniam, quis </B> nostrud exercitation ullamco <D>
> > laboris nisi ut aliquip <E> ex ea </E> commodo consequat. Duis aute </
> > D> irure dolor in reprehenderit ...
>
> > Now I want vim to highlight the text between <A> and </A> with red,
> > <B> and </B> with yellow, <D> and </D> with blue and between <E> and </
> > E> with green.
>
> Adriaan,
> Before writing your own, you might have a look at the following plugin:
>
> Txtfmt (The Vim 
> Highlighter)http://www.vim.org/scripts/script.php?script_id=2208


> Hope it helps...
> Brett Stahlman

Thanks Brett,

I know about The Vim Highlighter.
But these files contain about 40-100 times "<A> blah blah </A>" idem
for <B> etc.
So I would have to re-tag these files to get them highlighted, which
is just to much work.

Well, I could replace "<A>" by "<A> + token Txtfmt uses" to get
highlighting.

I looked at writing my onw syntax file, which I found rather complex.
And I found the match command which I couldn't get to do what I
wanted, probably because I'm no good in regular expressions.

It should not be too complicated though...

Thanks anyway!

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

Reply via email to