Sondre,
I had the exact same problem, the initial file content was
syntax-highlit, but newly entered text was not. The problem
went away when I added
(add-hook 'jde-mode-hook
(function (lambda ()
(font-lock-mode t))))
to my .emacs.
I had previously turned on font-lock globally, but that was
NOT ENOUGH. Only after adding the above to my .emacs did the
problem go away. Emacs 20.7, jde 2.2.6.
Regards,
Georg.
Jeff Rancier wrote:
>
> This may help:
>
> (global-font-lock-mode t)
>
> in your .emacs file.
>
> Jeff
>
> -----Original Message-----
> From: Haugen, Sondre [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 15, 2001 9:45 AM
> To: '[EMAIL PROTECTED]'
> Subject: syntax highlighting always on ?
>
> When opening av .java file syntax higlighting is on.
> But whatever i write in the file is not highlighted.
> The new codelines does not automatic get colors...
>
> How do i make syntax highlighting on always (also when appending new
> codelines) ?
>
>