<html>
<body>
<br>
In vi (or at least in vim) you can select visual mode <tt>&lt;esc.&gt;
v</tt>&nbsp;&nbsp;&nbsp; blockmark your code and then type an<tt> =</tt>
sign - and it will do quite a good job of formatting the whole
lot.<br><br>
To make it pretty in vi I would also suggest that you use (or put in your
.vimrc file) :-<br><br>
<tt>set expandtab</tt>&nbsp;&nbsp; (makes tabs real spaces so it still
looks cool in other editors)<br>
<tt>set sw=3&nbsp;&nbsp; </tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (sets
the shift width)<br>
<tt>set ts =3 </tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(sets the tab to 3 spaces)<br><br>
With the ts and sw set to the default the code&nbsp; goes of the side of
the screen after a few nested <tt>if</tt>s!<br><br>
Try <tt>set</tt> <tt>syntax=per</tt>l too. The perl syntax highlighting
is not had for HTML etc.<br><br>
<br><br>
<br><br>
At 2003/05/31 07:00 PM, you wrote:<br>
<blockquote type=cite class=cite cite>Send Za-pm mailing list submissions
to<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>za-pm@mail.pm.org<br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><a href="http://mail.pm.org/mailman/listinfo/za-pm" eudora="autourl">http://mail.pm.org/mailman/listinfo/za-pm</a><br>
or, via email, send a message with subject or body 'help' to<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>za-pm-request@mail.pm.org<br><br>
You can reach the person managing the list at<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>za-pm-admin@mail.pm.org<br><br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Za-pm digest...&quot;<br><br>
<br>
Today's Topics:<br><br>
&nbsp;&nbsp; 1. Re: books (Nico Coetzee)<br>
&nbsp;&nbsp; 2. Perl Source Code Formatter (Rory Austin)<br>
&nbsp;&nbsp; 3. Re: Perl Source Code Formatter (Nico Coetzee)<br><br>
--__--__--<br><br>
Message: 1<br>
From: Nico Coetzee &lt;nico@itfirms.co.za&gt;<br>
Organization: ITFirms.co.za<br>
To: za-pm@mail.pm.org<br>
Subject: Re: [Za-pm] books<br>
Date: Fri, 30 May 2003 19:33:25 +0200<br><br>
I have never paid customs duty - even when the total value exceeded R1000
- <br>
personally I don't knoe if it should be an automatic thing, or do the
customs <br>
trust you to fill in some form? I honestly don't know, and every person
you <br>
ask has a different story :-|<br><br>
Anyway - I read the the story on the two URL's, and I must say, I havn't
<br>
experienced anything like they describe. I order books - ussually from
<br>
Amazon.com - and within two to three weeks I get the postoffice note. I
then <br>
go pick up the books, and that's it. My average order is well in excess
of <br>
$40 ( or R400 ), so I really don't know...<br><br>
Weird how these import stuff works - but for me, it's still a
mystery.<br><br>
On Friday 30 May 2003 08:03, Sean Carte wrote:<br>
&gt; On Thu, 2003-05-29 at 08:37, Spike wrote:<br>
&gt; &gt; Also at a value of $4.50 there was no customs hassle (which can
be a<br>
&gt; &gt; problem with Amazon orders).<br>
&gt;<br>
&gt; Is it true that there is no customs duty on items that cost less
than<br>
&gt; R400?<br>
&gt;<br>
&gt;
&lt;<a href="http://www.mbendi.co.za/import/sa/customs_tariffs.htm" eudora="autourl">http://www.mbendi.co.za/import/sa/customs_tariffs.htm</a>&gt;
and<br>
&gt;
&lt;<a href="http://www.dhl.co.za/about/imports.html" eudora="autourl">http://www.dhl.co.za/about/imports.html</a>&gt;<br>
&gt;<br>
&gt; I assume that that includes shipping, and is worked out at the
exchange<br>
&gt; rate applicable on the day that the item crosses paths with
customs?<br><br>
-- <br>
Nico Coetzee<br><br>
<a href="http://www.itfirms.co.za/" eudora="autourl">http://www.itfirms.co.za/</a><br>
<a href="http://za.pm.org/" eudora="autourl">http://za.pm.org/</a><br>
<a href="http://forums.databasejournal.com/" eudora="autourl">http://forums.databasejournal.com/</a><br><br>
To the systems programmer, users and applications serve only to provide
a<br>
test load.<br><br>
<br>
--__--__--<br><br>
Message: 2<br>
Date: Sat, 31 May 2003 15:06:41 +0200<br>
To: za-pm@mail.pm.org<br>
From: Rory Austin &lt;rory@radv2.za.net&gt;<br>
Subject: [Za-pm] Perl Source Code Formatter<br><br>
Hi<br><br>
I'm looking for a tool to indent my code for me... 1000+ lines.
Preferably <br>
one that uses STDIN and STDOUT so I can easily integrate with an
IDE.<br><br>
Can any of you recommend any? Or have you got a perl script to do
it?<br><br>
Thanks,<br>
Rory<br><br>
<br>
--__--__--<br><br>
Message: 3<br>
From: Nico Coetzee &lt;nico@itfirms.co.za&gt;<br>
Organization: ITFirms.co.za<br>
To: za-pm@mail.pm.org<br>
Subject: Re: [Za-pm] Perl Source Code Formatter<br>
Date: Sat, 31 May 2003 17:55:23 +0200<br><br>
<a href="http://search.cpan.org/author/SHANCOCK/Perl-Tidy-20021130/bin/perltidy" eudora="autourl">http://search.cpan.org/author/SHANCOCK/Perl-Tidy-20021130/bin/perltidy</a><br><br>
On Saturday 31 May 2003 15:06, Rory Austin wrote:<br>
&gt; Hi<br>
&gt;<br>
&gt; I'm looking for a tool to indent my code for me... 1000+ lines.
Preferably<br>
&gt; one that uses STDIN and STDOUT so I can easily integrate with an
IDE.<br>
&gt;<br>
&gt; Can any of you recommend any? Or have you got a perl script to do
it?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Rory<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Za-pm mailing list<br>
&gt; Za-pm@mail.pm.org<br>
&gt;
<a href="http://mail.pm.org/mailman/listinfo/za-pm" eudora="autourl">http://mail.pm.org/mailman/listinfo/za-pm</a><br><br>
-- <br>
Nico Coetzee<br><br>
<a href="http://www.itfirms.co.za/" eudora="autourl">http://www.itfirms.co.za/</a><br>
<a href="http://za.pm.org/" eudora="autourl">http://za.pm.org/</a><br>
<a href="http://forums.databasejournal.com/" eudora="autourl">http://forums.databasejournal.com/</a><br><br>
To the systems programmer, users and applications serve only to provide
a<br>
test load.<br><br>
<br><br>
--__--__--<br><br>
_______________________________________________<br>
Za-pm mailing list<br>
Za-pm@mail.pm.org<br>
<a href="http://mail.pm.org/mailman/listinfo/za-pm" eudora="autourl">http://mail.pm.org/mailman/listinfo/za-pm</a><br><br>
<br>
End of Za-pm Digest </blockquote>
<x-sigsep><p></x-sigsep>
<tt><br>
<font face="Courier New, Courier" size=2>Spike Hodge<br><br>
UNIX Programmer<br>
</font></tt><font face="Courier New, Courier" size=2>M-Web
Technology<br>
</font><tt>021 596 8496<br>
082 901 5265<br><br>
</tt>Click here and make M-Web your homepage<br>
<a href="http://homepage.mweb.co.za/" eudora="autourl">http://homepage.mweb.co.za</a></body>
</html>