having no file extension default to C++
Charles Cosse
ccosse at gmail.com
Mon Mar 12 07:18:36 CET 2007
Hi Tim,
On 3/11/07, Tim Hubberstey <myredirector at gmail.com> wrote:
>
> 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=="::::::
In my case i don't want to edit these files ... just read-only to program
symmetric implementations elsewhere. so...
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.
Yes, i read that in the documentation somewhere, too, and that will
probably work for me; these are all cvs'd so i think there's got to
be a common header. I could check, but i'll just speculate. All the
standard C++ header files seem to have the substring "C++" in the
first line, so apparantly that's the convention.
--
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list