[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Giving values colors
From: |
kgold |
Subject: |
Re: Giving values colors |
Date: |
8 Nov 2004 22:34:17 GMT |
JS <asd@asd.com> writes:
> When I define a val in emacs:
>
> val temp = 23;
>
> is there someway to give the word "temp" a color like fun, let, if, then,
> else...etc.
Is the color assigned because
1- it's a variable?
2- it's the string of characters t-e-m-p?
For (2), try a variation of this:
(font-lock-add-keywords 'c-mode
'(("\\<\\(FIXME\\|XXX\\)" 1 font-lock-warning-face
prepend)))
(font-lock-add-keywords 'c-mode
'(("\\<\\(NOTE\\|XXX\\)" 1 font-lock-constant-face
prepend)))