help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax highlighting with javascript-mode.el and hilit19.el


From: Stefan Monnier
Subject: Re: syntax highlighting with javascript-mode.el and hilit19.el
Date: Fri, 10 Oct 2003 14:46:48 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I have the hilit19 lisp package,

Of course you do: it comes bundled with your Emacs.
(although since Emacs-21, it is marked `obsolete').

> Now in the javascript package there is a couple of lines along with:

> (if (featurep 'hilit19)
>    (hilit-set-mode-patterns
>     'javascript-mode

Don't bother with hilit19:

- First try to do M-x font-lock-mode while in javascript-mode.

- If that did not work, look for a less ancient javascript-mode.el.

- If that still only has hilit19 support but no font-lock support,
  then look harder.

- If you really insist on using hilit19, then do (require 'hilit19)
  in your .emacs file somewhere before you activate javascript-mode.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]