[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] fontifying contents of an environment

From: Non Aggie
Subject: [AUCTeX] fontifying contents of an environment
Date: Sat, 28 Aug 2010 12:01:35 -0400


I am trying to syntax highlight the contents of certain environments.
Following the suggestion of a long-ago post on this list
I tried the following to highlight the contents of an environment
called problem:

(add-hook 'LaTeX-mode-hook
          (lambda ()
             '(("\\\\begin{problem}\\(\\(.\\|\n\\)+?\\)\\\\end{problem}" 1

This works fine most of the time, but if the text inside the problem
environment contains % or $, then none of the text in the environment
is highlighted.  How do I fix this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]