Re: How to highlight procedure and function names in idlwave-mode? [message #52190] |
Mon, 15 January 2007 09:31 |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Fri, 12 Jan 2007 21:05:11 -0800, uniqueman wrote:
> In f90-mode, when I choose the font-lock-mode and heavy highlighting
> ( level 3) by clicking the menu items, it can highlight procedure and
> function name perfectly, as well as the reserved keywords. But in the
> idlwave-mode, after appending (setq idlwave-default-font-lock-items 3)
> to my .emacs.el, it didn't work, how can I fix this problem and make
> the function and procedure names highlighted?
IDLWAVE highlights routine definitions, not calling statements. You
can control how much highlighting is done with menu
IDLWAVE->Customize->Browse IDLWAVE Group, and then select
Misc->IDLWAVE Default Font Lock Items.
Font lock level 3 does everything in that list but the "FIXME: " tag (a
special Tag Carsten used in comments to draw attention to something which
needs fixing).
That said, you've set the wrong variable to change to level 3
fontification. The way to set level 3 fontification in IDLWAVE is:
(add-hook 'idlwave-mode-hook
(lambda ()
(setq font-lock-maximum-decoration 3)))
It's probably easier just to use the "Default Font Lock Items"
customization option above though.
JD
|
|
|