Re: Highlight multi-line data as a string
Try ":help syn-matchgroup".
The example I sent you would be changed to be:
syn region ColorScheme matchgroup=Normal start="noun define" end=")"
About the second item, try ":help format-comments".
Here is a sample (put it in your syntax file if you want).
This will set the comment character to be "!" and work
----- Original Message -----
From: "Daniel Bron" <DanielB@...>
Sent: Tuesday, July 29, 2003 4:54 PM
Subject: RE: Highlight multi-line data as a string
> Juan M. Medina wrote on Tuesday, July 29, 2003 4:23 PM
> > You can put in the syntax file for your language something like:
> > syn region ColorScheme start="noun define" end=")"
> Thanks. Is there any way to exlude the beginning and ending tokens from
> highlighting themselves? That is, while I want the content between "noun
> define" and ")" colored blue, I don't want either the "noun define" or the
> ")" colored blue.
> By the way, while I'm editing *.vim files, for example, if I'm writing a
> single-line comment and I press enter, I'm moved down to the next line,
> which has had the comment character prepended. How can I acheive this for
> my programming language? I have the syntax file defined. I'll post it if
> you want.
> -D. Bron