Hi Benni, > From: Benni Bärmann [mailto:be...@obda.de] > Sent: Monday, 24 September 2012 6:36 AM
> Hi! > > I am in search for an embperl emacs mode or another IDE which supports > the perl/html/embperl-mix in embperl-Scripts. At > > http://perl.apache.org/embperl/en/db/sites/editors.-category_id-5-.htm > > there are unfortunatly many dead links. I have used mmm-mode (multiple-major-mode) for years for this purpose. It allows you to (amongst many other things) specify delimiters for various parts of the file to map to corresponding major modes (eg cperl-mode for embperl blocks, javascript-mode for JS sections, css-mode for inline stylesheets etc). I believe this is all that needs to go into your .emacs assuming you have mmm-mode installed. It shows a contrived example via mmm-add-group of setting visual basic delimters and a simplistic css-mode setting for the contents within explicit style="" parameters. Most things just work out of the box, however so feel free to ignore that whole block. (require 'mmm-mode) (setq mmm-global-mode 'maybe) (mmm-add-group 'fancy-html '( (html-asp-tagged :submode visual-basic-mode :face mmm-code-submode-face :front "<%" :back "%>" ) (html-css-attribute :submode css-mode :face mmm-declaration-submode-face :front "style=\\\"" :back "\\\"" ) ) ) (mmm-add-mode-ext-class 'html-mode "\\.asp\\'" 'fancy-html) (mmm-add-mode-ext-class 'html-mode "\\.\\(epl\\|ep\\|html\\|shtml\\)\\'" 'embperl) (mmm-add-mode-ext-class 'html-mode "\\.\\(epl\\|html\\|shtml\\)\\'" 'html-js) (mmm-add-mode-ext-class 'html-mode "\\.html\\'" 'embedded-css) (mmm-add-mode-ext-class 'html-mode "\\.asp\\'" 'embedded-css) Cgeers, Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional commands, e-mail: embperl-h...@perl.apache.org