[Tutor] Source Code Formatter

kirk Bailey idiot1@netzero.net
Sat, 26 Jan 2002 11:44:38 -0500


Huuuuuu wrote:
> 
> Date: Sat, 26 Jan 2002 14:22:42 +0100
> 
> Hi,
> 
> is there a good code formatter for Python?
> With Highlighting. E.G. py->html?
> 
> Thanks,
> willi
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

I don't know of one of those, but if you speak ssi there is another
way. SSI.

To list a script in the server:
<!~-# include virtual "./cgi-bin/filename.py" -->

To insert a standard footer in a file:
<!--# include virtual="./footer.shtml" -->

Same for a header:
<!--# include virtual="./header.shtml -->

Notice the header and footer are themselves shtml, and can also
include ssi!

Be advised that imbedded htmls will still be interpeted as html, and
in html some symbols do not display correctly, such as the '<', '>',
and a small list of others, such as extra spaces, tabs, etc.

One advantage of this is that it instantly updates the webpage when
the script is modified and saved. For a project under delopment, this
can be handy.

SOME servers are configured so they only parse a page for ssi if the
page has ther name extension '.shtml', others are set  up so they
parse ALL pages for ssi includes- which is a waste of cpu time if only
domr hsve it in them.

SSI can be a VERY handy thing to have around the codeshop, and I left
several links to tutorials on it on the tinylist.org site.

-- 
 

 -Respectfully,
              -Kirk D Bailey 
               Consulting Loose Cannon

end



  www.howlermonkey.net                 highprimate@howlermonkey.net
  www.sacredelectron.org                         idiot1@netzero.net
  www.tinylist.org                              grumpy@tinylist.org
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97