4.1.5 Syntax Highlighting

Highlighting of keywords, comments, strings etc. can be accomplished with font-lock. If you are using global-font-lock-mode, or have font-lock-mode turned on in any other buffer, it should also automatically work in IDLWAVE buffers. If you’d prefer invoking font-lock individually by mode, you can enforce it in idlwave-mode with the following line in your .emacs:

(add-hook 'idlwave-mode-hook 'turn-on-font-lock)

IDLWAVE supports 3 increasing levels of syntax highlighting. The variable font-lock-maximum-decoration determines which level is selected. Individual categories of special tokens can be selected for highlighting using the variable idlwave-default-font-lock-items.

User Option: idlwave-default-font-lock-items

Items which should be fontified on the default fontification level 2.