Python syntax high-lighting and preservation on web

  • Thread starter =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
  • Start date
?

=?ISO-8859-1?Q?Gregory_Pi=F1ero?=

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/Cookbook/Python/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
 
D

Daniel Dittmar

Gregory said:
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/Cookbook/Python/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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top