Support for Font Lock in Proof General is described in the user manual
(see the Syntax highlighting section). To configure Font Lock for a
new proof assistant, you need to set the variable
font-lock-keywords
in each of the mode functions you want
highlighting for. Proof General will automatically install these
settings, and use font lock minor mode (for syntax highlighting as you
type) in script buffers.
To understand its format, check the documentation of
font-lock-keywords
inside Emacs.
Proof General provides a special function, proof-zap-commas
, for
tweaking the font lock behaviour of provers which have declarations of
the form x,y,z:Ty
. This function removes highlighting on the
commas, and can be added as the last element of
font-lock-keywords
. Further manipulation of font lock behaviour
can be achieved via two hook functions which are run before and after
fontifying the output buffers.
font-lock-keywords
'.
point-max
).
[This hook is presently only used by phox-sym-lock
].
Go to the first, previous, next, last section, table of contents.