>
> > 1. Syntax highlighting is done automatically for a selection of file
> > extensions. Is there a way I can edit this list of extensions? I program in
> > Fortran 95 and 2003, which typically have file extension .f90. Currently NE
> > only recognizes .f and .for as Fortran extensions, but those extensions
> > mean different things when you compile Fortran code. Extensions .f and .for
> > are used for the old, FORTRAN 77 formatting rules and .f90 is used for the
> > new formatting rules introduced in Fortran 90.
>
>
> Your first question about syntax highlighting is actually related to your
> followup question about retaining preferences. If you load a FORTRAN file
> with a .f90 extension, as you say ne will not recognise the extension so
> nothing gets highlighted. However, if you then enter the "syntax fortran"
> command, you should get FORTRAN highlighting. The trick then is to get ne
> to use that setting for subsequent ".f90" files. That's what "AutoPrefs" is
> all about.
I'd always thought that the way to get new filename extensions
recognized as a particular existing filetype was to go into your ~/.ne/
syntax dir (creating it if necessary) and create a symlink to the
filetype syntax file you want. For example:
~~~
cd ~/.ne/syntax
ln -s path/to/share/ne/syntax/fortran.jsf f90.jsf
~~~
---John