perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew O'Brien <>
Subject RE: Emacs Mode or IDE for Embperl
Date Mon, 24 Sep 2012 00:22:31 GMT
Hi Benni,

> From: Benni Bärmann []
> 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
> 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)
    :submode visual-basic-mode
    :face mmm-code-submode-face
    :front "<%"
    :back "%>"
    :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)



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message