Mercurial > emacs
comparison man/display.texi @ 46036:dd119e0d1cea
Explain that Font Lock controls fontification of special modes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 26 Jun 2002 22:29:36 +0000 |
parents | e4997ff1b0f4 |
children | 3fc21f1b20f0 |
comparison
equal
deleted
inserted
replaced
46035:11e7a6a33a8c | 46036:dd119e0d1cea |
---|---|
193 @section Font Lock mode | 193 @section Font Lock mode |
194 @cindex Font Lock mode | 194 @cindex Font Lock mode |
195 @cindex mode, Font Lock | 195 @cindex mode, Font Lock |
196 @cindex syntax highlighting and coloring | 196 @cindex syntax highlighting and coloring |
197 | 197 |
198 Font Lock mode is a minor mode, always local to a particular | 198 Font Lock mode is a minor mode, always local to a particular buffer, |
199 buffer, which highlights (or ``fontifies'') using various faces | 199 which highlights (or ``fontifies'') using various faces according to |
200 according to the syntax of the text you are editing. It can | 200 the syntax of the text you are editing. It can recognize comments and |
201 recognize comments and strings in most languages; in several | 201 strings in most languages; in several languages, it can also recognize |
202 languages, it can also recognize and properly highlight various other | 202 and properly highlight various other important constructs---for |
203 important constructs---for example, names of functions being defined | 203 example, names of functions being defined or reserved keywords. |
204 or reserved keywords. | 204 Some special modes, such as Occur mode and Info mode, have completely |
205 specialized ways of assigning fonts for Font Lock mode. | |
205 | 206 |
206 @findex font-lock-mode | 207 @findex font-lock-mode |
207 @findex turn-on-font-lock | 208 @findex turn-on-font-lock |
208 The command @kbd{M-x font-lock-mode} turns Font Lock mode on or off | 209 The command @kbd{M-x font-lock-mode} turns Font Lock mode on or off |
209 according to the argument, and toggles the mode when it has no argument. | 210 according to the argument, and toggles the mode when it has no argument. |