Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 8th, 2004, 09:26 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
Update to py2html

My syntax highlighting module has been updated. A number of features added, a few bugs removed. Supports external style files so you can do code markups in most situations.
e.g:
Code:
    def safetext(self, data): 
        dl = list(data)
        for index, value in enumerate(dl): 
            if ord(value)>128: 
                dl[index] = "&#%3d;"%(ord(value), )
                print dl[index], 
        return ''.join(dl)

Get it here.

The above code-block including the colours was produced using the GUI module that comes with it. (Using the py2html_forum_code.style file)

Grim.
__________________
*** Experimental Python Markup CGI V2 ***

Last edited by Grim Archon : March 8th, 2004 at 10:17 AM.

Reply With Quote
  #2  
Old March 8th, 2004, 10:06 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Very nice work Grim! i'm planning to use it whenever i post any major code in the forum where syntax highlighting is just a must!

A godsend, keep it up,

Mark
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old March 8th, 2004, 05:55 PM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
As a quick howto:
  1. Select py2html_forum_code.style
  2. Uncheck replace < > &
  3. Check replace spaces and newlines
  4. Copy the code into the top box
  5. Click Make Block
  6. Click Copy to Clipboard
  7. Paste into DevShed dialog
Note: If you forget to uncheck replace <> & then you get wrong characers in your text.
If you don't like the default IDLE colours, of course you can manually edit the style file to do other colours. Just save it with a .style extension and then the GUI can use it.

To find out more click the help button or use pydoc and help to review py2html.
NOTE: Version 0.61 is the one to use for this!

Reply With Quote
  #4  
Old March 8th, 2004, 06:15 PM
XxChris XxChris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 217 XxChris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is awesome! It will be extremely useful when I place code on my website. Keep it up Grim!

Reply With Quote
  #5  
Old March 15th, 2004, 04:17 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
New update to PY2HTML

This release is mainly about user interface changes and convenience features.
py2htmlTk.pyw 0.65:
I have updated the GUI for py2html - hopefully it is easier on the eye and generally more usable :
  • Menus for file operations, program configuration and help
  • Program configuration can be modified, saved, loaded and defaults set.
  • Edit and Save contents of Output (e.g. change the Markup, Style file or page template)
  • Moved configurable items to a new dialog
  • Customisable look
py2html.py 0.62:
  • Extended entity replacement options.
  • Minor bug fixed for multi-newline replacement.

py2html 0.62 is available here!

I have realised (and it's been pointed out a number of times!) that this project has extended beyond HTML and is now much more general. As a result I am moving on to a new version to handle other languages and offer even more flexibility. This is probably the last version of py2html (assuming major bugs are not found).

I hope you find it useful!
Grim

Last edited by Grim Archon : March 15th, 2004 at 04:20 AM.

Reply With Quote
  #6  
Old March 15th, 2004, 08:28 PM
Boceifus's Avatar
Boceifus Boceifus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 93 Boceifus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 2 h 5 m 27 sec
Reputation Power: 5
nice job Grim!
as a token of appreciation,the first round is on me...

Now thats a beer!
__________________
It is not important if the glass is half full or half empty.What is important,is who has been drinking from MY glass?!?!?

Reply With Quote
  #7  
Old March 16th, 2004, 01:21 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
Quote:
Originally Posted by Boceifus

Bo,
I'm glad you like it, if I missed anything out let me know!

Cheers, that was refreshing. And you knew my favourite brand too

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Update to py2html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway