[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Font Lock mode is a feature that automatically attaches face
properties to certain parts of the buffer based on their syntactic role.
How it parses the buffer depends on the major mode; most major modes define
syntactic criteria for which faces to use in which contexts. This section
explains how to customize Font Lock for a particular major mode.
Font Lock mode finds text to highlight in two ways: through syntactic parsing based on the syntax table, and through searching (usually for regular expressions). Syntactic fontification happens first; it finds comments and string constants and highlights them. Search-based fontification happens second.
23.6.1 Font Lock Basics | Overview of customizing Font Lock. | |
23.6.2 Search-based Fontification | Fontification based on regexps. | |
23.6.3 Customizing Search-Based Fontification | Customizing search-based fontification. | |
23.6.4 Other Font Lock Variables | Additional customization facilities. | |
23.6.5 Levels of Font Lock | Each mode can define alternative levels so that the user can select more or less. | |
23.6.6 Precalculated Fontification | How Lisp programs that produce the buffer contents can also specify how to fontify it. | |
23.6.7 Faces for Font Lock | Special faces specifically for Font Lock. | |
23.6.8 Syntactic Font Lock | Fontification based on syntax tables. | |
23.6.9 Setting Syntax Properties | Defining character syntax based on context using the Font Lock mechanism. | |
23.6.10 Multiline Font Lock Constructs | How to coerce Font Lock into properly highlighting multiline constructs. |
Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.