By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

Python syntax high-lighting and preservation on web

P: n/a
Hey guys,

Does anyone know where I can pick up a style sheet (css) and/or other
files/programs I might need to display python code on my website with
tab preservation(or replace with spaces) and colored syntax? I want
something similar to the python code on a page like this:

http://aspn.activestate.com/ASPN/Coo.../Recipe/303770

(I think this is a python-list question although maybe it belongs in a
css group?) I figure some of you guys would have experience with
this.

-----

Giving this issue some more thought, I suppose I could make or find a
css file anywhere that would work. The hard part would be getting all
of the div and class tags added to my python code. So I think what I
really need is a program that will do that, or advice on how to begin
writing such a program. (It might make a good wordpress plugin too)

Thanks,
'
Greg
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gregory Piñero wrote:
Hey guys,

Does anyone know where I can pick up a style sheet (css) and/or other
files/programs I might need to display python code on my website with
tab preservation(or replace with spaces) and colored syntax? I want
something similar to the python code on a page like this:


see http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298

css only won't help you as someone has to insert the span tags so that
the style sheet has something to match.

Daniel
Jul 19 '05 #2

P: n/a
This is perfect! Thanks!
On 6/29/05, Daniel Dittmar <da************@sap.corp> wrote:
Gregory Piñero wrote:
Hey guys,

Does anyone know where I can pick up a style sheet (css) and/or other
files/programs I might need to display python code on my website with
tab preservation(or replace with spaces) and colored syntax? I want
something similar to the python code on a page like this:


see http://aspn.activestate.com/ASPN/Coo...n/Recipe/52298

css only won't help you as someone has to insert the span tags so that
the style sheet has something to match.

Daniel
--
http://mail.python.org/mailman/listinfo/python-list

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.