[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] mmm-noweb and fontification
From: |
C Y |
Subject: |
[Axiom-developer] mmm-noweb and fontification |
Date: |
Sat, 17 Feb 2007 09:04:01 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070204) |
In case this triggers a flag for anybody, it looks like this might
be what we need (or mmm-mode needs anyway) to fontify in such a way
that chunks are avoided:
;;; Fontification functions.
;; Rather than the function, e.g., `font-lock-fontify-region' containing
;; the code to fontify a region, the function runs the function whose
;; name is the value of the variable, e.g.,
;; `font-lock-fontify-region-function'. Normally, the value of this
;; variable is, e.g., `font-lock-default-fontify-region'
;; which does contain the code to fontify a region. However, the value
;; of the variable could be anything and thus, e.g.,
;;`font-lock-fontify-region' could do anything. The indirection of the
;; fontification functions gives major modes the capability of modifying
;; the way font-lock.el fontifies. Major modes can modify the values
;; of, e.g., `font-lock-fontify-region-function',
;; via the variable `font-lock-defaults'.
;; Languages that contain text normally contained in different major
;; modes could define their own fontification functions that treat text
;; differently depending on its context. For example, Perl mode could
;; arrange that here docs are fontified differently than Perl code. Or
;; Yacc mode could fontify rules one way and C code another. Neat!
That sounds like the ticket, now to figure out how to use it!
- [Axiom-developer] A first attempt at a notangle in Lisp, C Y, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, Waldek Hebisch, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, C Y, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, Ralf Hemmecke, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, C Y, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, Ralf Hemmecke, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, C Y, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, Martin Rubey, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, Ralf Hemmecke, 2007/02/16
- Re: [Axiom-developer] A first attempt at a notangle in Lisp, C Y, 2007/02/16
- [Axiom-developer] mmm-noweb and fontification,
C Y <=
Re: [Axiom-developer] A first attempt at a notangle in Lisp, Gregory Vanuxem, 2007/02/16