help-octave
[Top][All Lists]
Advanced

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

Re: What should be the extension of octave files?


From: John W. Eaton
Subject: Re: What should be the extension of octave files?
Date: Mon, 27 Feb 2006 18:10:22 -0500

On 27-Feb-2006, kamaraju kusumanchi wrote:

| For example, if you were a vim developer and you see a .m file, should 
| the syntax highlighting correspond to that of matlab or should it 
| correspond to octave? What do other editors like emacs etc., do in these 
| cases?

By default, Emacs starts the Objective C mode for .m files, but you
can specify your own default.  You can also tell it what mode to open
by using a tag like

  ### -*- octave -*-

or by using local variables

  ### Local Variables: ***
  ### mode: octave
  ### End: ***

You could also have Emacs start a special mode for all .m files that
looks at the contents of the file and decides which actual mode to
use.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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