unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Guillaume Cottenceau <guillaume.cottenceau@mnc.ch>
Subject: About: Re: Emacs and ASP major mode
Date: 12 Mar 2004 15:48:13 +0100	[thread overview]
Message-ID: <84ptbi86ky.fsf@frozen.mnc.ch> (raw)

Hi,

I was looking for an asp-mode for Emacs. I've read the message by
"Jeffery B. Rancier" on Mon, 24 Feb 2003 17:23:27 -0500 who
suggested to use the visual-basic mode. I just wanted to share
with you something slightly better (I hope) that I'm using.

The asp-mode I'm using is based on using html-mode. If you don't
have it, google and download it.

Basically, it switches between the visual-basic-mode for parts
containing scriptlets, and html-mode for html. I've also added
the use of the java-mode when "<script" is encountered - however,
I'm no asp/html expert thus I don't know if we can safely assume
that stuff after "<script" is always javascript. Here's what I've
added in my .emacs to declare the asp-mode:

(defun asp-mode () (interactive)
  (multi-mode 1
	      'html-mode
	      '("<%" visual-basic-mode)
              '("<script" java-mode)
              '("</script" html-mode)
	      '("%>" html-mode)))

Happy about it, I'm now switching to something similar for
editing PHP:

(defun gcphp-mode () (interactive)
  (multi-mode 1
	      'html-mode
	      '("<?php" php-mode)
	      '("<?" php-mode)
              '("<script" java-mode)
              '("</script" html-mode)
	      '("?>" html-mode)))

See you.

-- 
Guillaume Cottenceau

                 reply	other threads:[~2004-03-12 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84ptbi86ky.fsf@frozen.mnc.ch \
    --to=guillaume.cottenceau@mnc.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).