Robert Hicks wrote:
You could adopt the way other editor do it. That way you are sure not to have SciTE confused. jEdit: :mode=Tcl: Vim: set ft=Tcl Emacs: -*-mode: Tcl;-*- I gather you are just trying to do an "automatic" thing that doesn't require this but I thought I would point it out.
Yes I second this - it would be nice if scite would check the first and last line of a file for these markers as well. I have a lot of files with 'custom' extensions (ie, for php files, with a different extension than '.php') and I switch between vim Linux and Scite on Windows - it'd be nice if the same mechanism for indicating the language would work everywhere. Also, would this work *only* when there is *no* extension or also when an unknown extension is found? I'd prefer the latter, and personally I would even prefer it if the shbang and 'mode lines' could override the extensions - but I can imagine that other people feel different about that :)
cheers, roel _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
