I am writing a document in Aquamacs, and I want some (not all) of the text to be in a different colour. Is this possible?
I googled it but could only see how to change the font colour of all the text.
I am writing a document in Aquamacs, and I want some (not all) of the text to be in a different colour. Is this possible?
I googled it but could only see how to change the font colour of all the text.
The question is quite unclear. Please specify. What do you mean by putting some of the text in a different color?
Do you want syntax-specific highlighting? If so, turn on font-locking. And you might need to define font-lock-keywords
for the current mode. See the Emacs manual, node Font Lock.
Do you want ad hoc highlighting? If so, try the Highlight library (highlight.el
).
For information about font coloring and faces, see Emacs Wiki, Category Faces. Or ask Emacs: C-h r
C-h i faces RET
.