-----Original Message----- From: Bill Anderson [mailto:bill@libc.org] Sent: Friday, May 26, 2000 11:21 AM To: zope@zope.org Subject: Re: [Zope] HTML EDITORS
Luis Cortes wrote:
Hello,
Has anyone found a really good HTML EDITOR that plays nice
with dtml tags?
Do anybody have anything they can really recommend?
GVIM
I'll second that. And it works just as nicely on Windoze as it does on *NIX. If you you're interested in using it, I'll send you my vimrc. It's well simple and well-commented. I don't have any special syntax stuff for dtml, but find that the standard html highting works just fine. If you haven't dealt with vi before, you'll find the learing curve a bit steep, but you'll _love_ it when you get the hang of it. And if you come from a GUI world, gvim gives you all the little niceites you're used to, like cut & paste, scroll bars, mouse-based highlighting and that sort of thing. Of couse, once you get used to gvim, you can just hide your mouse under you desk form most of the day.... :)
I'd like to third that but Can't because GVIM doesn't have a FTP client. If your using Win32 take a look at HTMLKit (www.chami.com). It's a free HomeSite thingy, it's brilliant. ----- Original Message ----- From: "Wright, Geoff" <Geoff.Wright@asci4materials.com> To: <zope@zope.org> Sent: 26 May 2000 20:51 Subject: RE: [Zope] HTML EDITORS
-----Original Message----- From: Bill Anderson [mailto:bill@libc.org] Sent: Friday, May 26, 2000 11:21 AM To: zope@zope.org Subject: Re: [Zope] HTML EDITORS
Luis Cortes wrote:
Hello,
Has anyone found a really good HTML EDITOR that plays nice
with dtml tags?
Do anybody have anything they can really recommend?
GVIM
I'll second that.
And it works just as nicely on Windoze as it does on *NIX. If you you're interested in using it, I'll send you my vimrc. It's well simple and well-commented. I don't have any special syntax stuff for dtml, but find that the standard html highting works just fine.
If you haven't dealt with vi before, you'll find the learing curve a bit steep, but you'll _love_ it when you get the hang of it. And if you come from a GUI world, gvim gives you all the little niceites you're used to, like cut & paste, scroll bars, mouse-based highlighting and that sort of thing. Of couse, once you get used to gvim, you can just hide your mouse under you desk form most of the day.... :)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Phil Harris wrote:
I'd like to third that but Can't because GVIM doesn't have a FTP client.
You can simulate one fairly easily. The attached script (which would need to be tweaked for your environment) ftp-gets the zope object into a temp directory. It also creates a Makefile in the temp directory which ftp-puts the object back into zope. You can then use the GVIM "make" button (looks like a hammer) to save your changes and push them back to zope. ==== zope-ftpedit ==== #!/bin/sh . $HOME/zope/setenv TOOL=gvim usage="$0 [hostname] filepath" case $# in 1) MACHINE=`uname -n` TARGET=$1 ;; 2) MACHINE=$1 TARGET=$2 ;; *) echo "$usage"; exit 1;; esac # account name and password kept in separate file OPTS="-f $HOME/zope/etc/ncftp.$MACHINE -P $ZOPE_FTP" TDIR="`dirname $TARGET`" TFILE="`basename $TARGET`" # make tmp dir TMPBASE=/tmp/`basename $0` NUM=$$ while [ -e $TMPBASE.$NUM ] do NUM=`expr $NUM + 1` done TMPDIR=$TMPBASE.$NUM mkdir $TMPDIR || exit 1 cd $TMPDIR || exit 1 # load requested file GETCMD="ncftpget $OPTS . $TARGET" PUTCMD="ncftpput $OPTS $TDIR $TFILE" cat <<!! >Makefile || exit 1 # tmpdir is $TMPDIR timestamp: $TFILE $PUTCMD touch timestamp put: $PUTCMD get: $GETCMD edit: $TOOL $TFILE !! echo "$0 tmpdir is $TMPDIR" make get edit # vim:sw=2:sts=2
Yeah, I made one in Python a while back, but it's not quite the same as having it built into the editor itself. Something like the Emacs Ange-FTP in GVIM and I'd be a total convert. ----- Original Message ----- From: "John A Chaves" <chaves@acm.org> To: "Phil Harris" <phil.harris@zope.co.uk> Cc: "Wright, Geoff" <Geoff.Wright@asci4materials.com>; <zope@zope.org> Sent: 26 May 2000 23:19 Subject: Re: [Zope] HTML EDITORS
Phil Harris wrote:
I'd like to third that but Can't because GVIM doesn't have a FTP client.
You can simulate one fairly easily. The attached script (which would need to be tweaked for your environment) ftp-gets the zope object into a temp directory. It also creates a Makefile in the temp directory which ftp-puts the object back into zope. You can then use the GVIM "make" button (looks like a hammer) to save your changes and push them back to zope.
==== zope-ftpedit ==== #!/bin/sh
. $HOME/zope/setenv TOOL=gvim
usage="$0 [hostname] filepath"
case $# in 1) MACHINE=`uname -n` TARGET=$1 ;; 2) MACHINE=$1 TARGET=$2 ;; *) echo "$usage"; exit 1;; esac
# account name and password kept in separate file OPTS="-f $HOME/zope/etc/ncftp.$MACHINE -P $ZOPE_FTP" TDIR="`dirname $TARGET`" TFILE="`basename $TARGET`"
# make tmp dir
TMPBASE=/tmp/`basename $0` NUM=$$ while [ -e $TMPBASE.$NUM ] do NUM=`expr $NUM + 1` done TMPDIR=$TMPBASE.$NUM
mkdir $TMPDIR || exit 1 cd $TMPDIR || exit 1
# load requested file
GETCMD="ncftpget $OPTS . $TARGET" PUTCMD="ncftpput $OPTS $TDIR $TFILE"
cat <<!! >Makefile || exit 1 # tmpdir is $TMPDIR
timestamp: $TFILE $PUTCMD touch timestamp
put: $PUTCMD
get: $GETCMD
edit: $TOOL $TFILE !!
echo "$0 tmpdir is $TMPDIR" make get edit
# vim:sw=2:sts=2
John A Chaves wrote:
You can simulate one fairly easily. The attached script (which would need to be tweaked for your environment) ftp-gets the zope object into a temp directory. It also creates a Makefile in the temp directory which ftp-puts the object back into zope. You can then use the GVIM "make" button (looks like a hammer) to save your changes and push them back to zope.
Can you put this up as a howto? Thanks, ~ethan mindlace@digicool.com
"Wright, Geoff" wrote:
GVIM
I'll second that.
And it works just as nicely on Windoze as it does on *NIX. If you you're interested in using it, I'll send you my vimrc.
Please, post away (if you send it to the list, it should be archived for eternity, or thereabouts :-). Regards, Daryl Tester
participants (5)
-
Daryl Tester -
ethan mindlace fremen -
John A Chaves -
Phil Harris -
Wright, Geoff