Jörg-Volker Peetz wrote: >> I need to detect the language of the script in order to highlight it >> accordingly (GNU source-highlight >> http://www.gnu.org/software/src-highlite) >> > See Emacs manual "How Major Modes are Chosen". It says > > You can specify which major mode should be used for editing a certain > file by a special sort of text in the first nonblank line of the file. > The mode name should appear in this line both preceded and followed by > `-*-'. Other text may appear on the line as well. For example, > > ;-*-Lisp-*-
Except that this is totally Emacs-specific and to the best of my knowledge nobody outside of Emacs world doesn't use it. Matěj -- GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC http://www.ceplovi.cz/matej/blog/, Jabber: [EMAIL PROTECTED] 23 Marion St. #3, (617) 876-1259, ICQ 132822213 Give your heartache to him. (1Pt 5,7; Mt 11:28-30) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]