Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

Emacs Mode or IDE for Embperl

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


benni at obda

Sep 23, 2012, 1:36 PM

Post #1 of 6 (509 views)
Permalink
Emacs Mode or IDE for Embperl

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.

Thanks for any hints again.

And thanks for the wonderful response and interesting discussion after
my last question :)

Greetings, Benni
--
http://bennibaermann.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


embperl at thefreecat

Sep 23, 2012, 4:17 PM

Post #2 of 6 (483 views)
Permalink
Re: Emacs Mode or IDE for Embperl [In reply to]

jEdit has a decent support for embperl (switches to/from html).

http://www.jedit.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


andrewo at oriel

Sep 23, 2012, 5:22 PM

Post #3 of 6 (483 views)
Permalink
RE: Emacs Mode or IDE for Embperl [In reply to]

Hi Benni,

> From: Benni Bärmann [mailto:benni [at] obda]
> 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-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


rdesmond at press

Sep 24, 2012, 11:30 AM

Post #4 of 6 (477 views)
Permalink
Re: Emacs Mode or IDE for Embperl [In reply to]

I'd have to mirror Jean-Christophe's recommendation.

"embperl" is a syntax highlighting scheme that comes with jEdit, and it
is very good.

It switches from Perl-like to HTML-like based on the Embperl delimiters.

-R

On 9/23/2012 6:17 PM, Jean-Christophe Boggio wrote:
> jEdit has a decent support for embperl (switches to/from html).
>
> http://www.jedit.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>

--
Robby Desmond
BiblioVault Operations Assistant
University of Chicago Press
http://www.bibliovault.org/
ph: 773-834-2387
cell: 773-458-0959
rdesmond [at] press

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


knb at gfz-potsdam

Sep 25, 2012, 12:35 AM

Post #5 of 6 (479 views)
Permalink
Re: Emacs Mode or IDE for Embperl [In reply to]

The Textpad editor (a commercial software for windows) also has an
Embperl mode for syntax highlighting, but not syntax completion and (I
think) no linting either.

Knut

On 2012-09-23 22:36, Benni Bärmann wrote:
> 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.
>
> Thanks for any hints again.
>
> And thanks for the wonderful response and interesting discussion after
> my last question :)
>
> Greetings, Benni


--
____________________________________________________________________________

Knut Behrends Phone: +49 (0) 331 288 1688
____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


dvk_mail_lists at yahoo

Sep 25, 2012, 6:16 AM

Post #6 of 6 (479 views)
Permalink
Re: Emacs Mode or IDE for Embperl [In reply to]

UltraEdit also has a syntax highlighting file for Embperl as well, for those who prefer native Windows IDEs




________________________________
From: Robby Desmond <rdesmond [at] press>
To: embperl [at] perl
Sent: Monday, September 24, 2012 2:30 PM
Subject: Re: Emacs Mode or IDE for Embperl

I'd have to mirror Jean-Christophe's recommendation.

"embperl" is a syntax highlighting scheme that comes with jEdit, and it
is very good.

It switches from Perl-like to HTML-like based on the Embperl delimiters.

-R

On 9/23/2012 6:17 PM, Jean-Christophe Boggio wrote:
> jEdit has a decent support for embperl (switches to/from html).
>
> http://www.jedit.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>

--
Robby Desmond
BiblioVault Operations Assistant
University of Chicago Press
http://www.bibliovault.org/
ph: 773-834-2387
cell: 773-458-0959
rdesmond [at] press

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.