Thanks for the hint, I tried this, but all my beautiful salad bowl
colours went away.

(font-lock-add-keywords 'org-mode '(("\"\\(\\(?:.\\|\n\\)*?[^\\]\\)\""
0 font-lock-string-face)))

Notice that I made a bad attempt to handle escaped quotation mark in
the string.  Does anyone know a better solution to handle escaped
characters in font-lock?

On Wed, Aug 24, 2011 at 9:17 AM, John Wiegley <jwieg...@gmail.com> wrote:
>>>>>> John Wiegley <jwieg...@gmail.com> writes:
>
>>>>>> Le Wang <l26w...@gmail.com> writes:
>>> I wasn't able to google a clear examples of how to do this.  For example,
>>> I'd like to highlight all text between double-quotes.
>
>> Typically it looks something like this:
>
>>   (font-lock-add-keywords org-mode
> [...]
>
> Sorry, that should be 'org-mode, to name the symbol, not attempt to use its
> value.
>
> John
>
>
>



-- 
Le

Reply via email to