>>>>> 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 (list (list (concat "\\(\"[^\"]+\"\\)") 1 highlight-face t))) Where `highlight-face' is the face you'd like to use. The regexp doesn't handle cases where \" legitimately occurs in a string, either. The part between the \\(\\) is what gets colorized. John