|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
As a quick howto:
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! |
|
#4
|
|||
|
|||
|
This is awesome! It will be extremely useful when I place code on my website. Keep it up Grim!
|
|
#5
|
||||
|
||||
|
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 :
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. |
|
#6
|
||||
|
||||
|
__________________
It is not important if the glass is half full or half empty.What is important,is who has been drinking from MY glass?!?!? |
|
#7
|
||||
|
||||
|
Quote:
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![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Update to py2html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|