[Techtalk] editing of .asp files
Conor Daly
conor.daly-linuxchix at cod.homelinux.org
Sun May 6 10:10:46 UTC 2007
On Fri, May 04, 2007 at 11:27:36AM -0700 or so it is rumoured hereabouts,
Cynthia Kiser thought:
> Quoting Rudy Zijlstra <rudy at grumpydevil.homelinux.org>:
> > Hello list,
> >
> > Does anyone here know of a good tool to edit web .asp files?
> >
> > So far the only tool we have found is "vim" or any other simple text
> > editor. Is there something that understands .asp?
>
> Any basic text editor should work. To get syntax highlighting, you can
> probably set up your text editor to thinkg .asp files are .html. For
> example, in emacs, open the file and then type M-x html-mode (you may
> also need M-x font-lock-mode for syntax highlighting).
I don't know the syntax to do it in vim but, if you run gvim, then click
on
Syntax -> 'Show filetypes in menu'
and then click on
Syntax -> AB ->
And choose the ASP type, you will get the syntax highlighting.
There are two ASP types listed.
locate asp | grep vim
gives me:
/usr/share/vim/vim70/syntax/aspperl.vim
/usr/share/vim/vim70/syntax/aspvbs.vim
So, in vim, you do:
:set syntax=aspvbs
to use the ASP with VBScript syntax.
Oh look, I _do_ know how to do it in vim!....
Conor
--
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/
More information about the Techtalk
mailing list