I'm using TextMate to write some script files for the computational program Octave. These are text files, but TextMate insists on adding formatting that I don't want. How do I turn this automatic formatting off?
- Dushan
PS, I had sent this same msg almost a week ago, but never saw it appear in the digest. But in the 'From:' I had forgotten to switch it from not.for@public.display to my real email address. Could this be the explanation?
On 26 Oct 2007, at 01:07, DushanM wrote:
I'm using TextMate to write some script files for the computational program Octave. These are text files, but TextMate insists on adding formatting that I don't want. How do I turn this automatic formatting off?
What kind of formatting are you talking about? Perhaps you mean indentation? You should make sure you have the language set to Plain Text by using the popup menu on the bottom of the window.
Even better, of course, would be to write a grammar for Octave ;)
You can use the matlab bundle from the SVN repository. Octave is mostly compatible with the matlab syntax.
On a similar topic - is there a way to get TextMate to select the language based on a where in the directory structure a file is loaded?
Matlab/Octave files typically have extensions of ".m" which is the same extension for objective-c. I would like to set the language to "Matlab" when the path contains a matlab directory (example /somedir/matlab/foo.m) otherwise, just set the language to objective-c. As I remember from my emacs days, I had a load hook that was able to make that kind of decision.
Ciarán Walsh-3 wrote:
On 26 Oct 2007, at 01:07, DushanM wrote:
I'm using TextMate to write some script files for the computational program Octave. These are text files, but TextMate insists on adding formatting that I don't want. How do I turn this automatic formatting off?
What kind of formatting are you talking about? Perhaps you mean indentation? You should make sure you have the language set to Plain Text by using the popup menu on the bottom of the window.
Even better, of course, would be to write a grammar for Octave ;)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate