mixing modes
[email protected] Tue, 20 Apr 2004 13:42:18 +0200
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <OF85A48A6D.09C203F7-ONC1256E7C.003FFF93-C1256E7C.00408345@diamond.philips.com> |
Hi all,
I'd like to create a new major-mode (for syntax highlighting, indentation etc.)
for files of a proprietary syntax.
In certain regions of these files, Perl code may appear. These
regions are delimited by the special character sequences
'{*' and '*}' (curly brace plus asterisk and vice versa). I'd like
to switch to Perl-mode in these regions.
How can I do this? (sorry, I'm a newbee to modes).
Are there any 'quick-start guides' or 'examples' on such a problem
or on major and minor modes in general?
Thanks for any help!
Regards,
Gerhard