Re: [O] how to add font-lock keywords

2011-08-23 Thread Le Wang
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 solut

Re: [O] how to add font-lock keywords

2011-08-23 Thread John Wiegley
> John Wiegley writes: > Le Wang 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 'or

Re: [O] how to add font-lock keywords

2011-08-23 Thread John Wiegley
> Le Wang 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 (list (list (concat "\\(\"[^\"]+\"\\)")

[O] how to add font-lock keywords

2011-08-23 Thread Le Wang
Hi all, 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. -- Le