all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* About: Re: Emacs and ASP major mode
@ 2004-03-12 14:48 Guillaume Cottenceau
  0 siblings, 0 replies; only message in thread
From: Guillaume Cottenceau @ 2004-03-12 14:48 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-12 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 14:48 About: Re: Emacs and ASP major mode Guillaume Cottenceau

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.