[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] Re: modify emacs-wiki.el to handle more tags/fa
From: |
Joe Corneli |
Subject: |
Re: [emacs-wiki-discuss] Re: modify emacs-wiki.el to handle more tags/faces ? |
Date: |
Sat, 01 May 2004 01:29:50 -0500 |
> Cool. But would you be willing to post a prototype function I can
> generalize from that will do nothing but cause the additional piece
> of text in a different color (or face) that I get to choose? Like,
> the code to make a <green>foo</green>?
See emacs-wiki-verbatim-tag for an example of a tag that changes the
face of the enclosed text.
If you don't want to mark it up specially, simply use (when
highlight-p ...) instead of (if highlight-p ... ...).
OK, I think I understand how to use this function to change the face
now (haven't tried it yet) but (OT) I don't fully understand the
text properties that are being added by the function... though
now I'm looking in the elisp manual and it makes a bit more sense.
However, I don't see how this changes the face (maybe I'm missing
something). Wouldn't you want to use something like
(add-text-properties beg end '(face default
rear-nonsticky (read-only)
read-only t))
(or whatever) for purposes of changing the face?