Monday, January 9, 2012

Re: Match string - quotes excluded

On 01/09/2012 02:09 PM, Karthick Gururaj wrote:
On Mon, Jan 9, 2012 at 9:27 PM, Fernando Basso <fernandobasso.br@gmail.com> wrote: 
On 01/09/2012 01:56 PM, Ben Fritz wrote:  On Jan 9, 6:24 am, Fernando Basso <fernandobasso...@gmail.com> wrote:  I want to highlight text inside quotes, but not the quotes themselves.  Highlight with syntax highlighting, or just search highlighting?   With syntax highlighting. 
You can do it with either syntax match or syntax region..  A simple example, doesn't take care of escaped quotes for instance: :syntax match String /"[^"]*"/hs=s+1,he=e-1  
Very good.

I'll continue reading the :help here to learn more.

Thanks.

No comments: