having no file extension default to C++

Tim Hubberstey myredirector at gmail.com
Mon Mar 12 06:01:44 CET 2007


Charles Cosse wrote:
> Hello,
> 
> i've used nedit every day for many years, so would just like to say Thanks
> before asking my question.  Here's my question: Is there any way to cause
> nedit to default to C++ language mode? I'm working with lots of headers
> that don't have an extension, but they're C++ header files.  Thanks,
> 
> Charles Cosse

I have the same issue with some Tcl files. I handle it by putting a 
special comment at the start of each file: '#==TCL=='. It's built into 
my prototype header so I don't even have to think about it.

This is the language definition line I use in my ,nedit file:

Tcl:.tcl .TCL .do .tk:"^#==TCL=="::::::

IIRC, NEdit scans the first 5 lines of a file looking for a regex match 
so anything common to all your files could be used.


More information about the Discuss mailing list