Hi Sean :)
* Sean Hubbell <[EMAIL PROTECTED]> dixit:
> I would like to be able to shade (use the same background color, but
> make it lighter) the text between two braces (spanning multiple lines
> and possibly nested). What is the best way to accomplish this?
If you're already using a syntax file (e.g. the vim runtime provides
a syntax file for the language you're interested in), you may dare to
modify it, or to write your own modifications in some "~/.vim/after/.*"
syntax file.
If exists a syntax file suitable for you in the vim runtime *and* it
already provides some "syntax group" for the text between two braces,
then you're lucky, because you just need to add something like:
hi Shaded ...
hi link NameOfTheGroup Shaded
To know what to put in the "...", see ":help highlight".
If you need to add your own group (or if no syntax file exists for
that language), I think that your best bet is using a region:
syntax region TextInBrackets start="{" end="}"
hi TextInBrackets ...
Again, see ":help highlight" and ":help syntax". If you could
ellaborate a bit on your problem (language you're using, which terminal
do you use, for example), I may give you more precise help regarding
colors, and the like.
I hope that helps :
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!