473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Python syntax high-lighting and preservation on web

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
2 1245
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
19
by: KefX | last post by:
I've been following the group a bit (somewhat loosely; discussions involving other languages or advanced concepts kind of lose me), and I see all this negativity (OMG Python's lambda is borken...
58
by: Svein Ove Aas | last post by:
Is anyone working on a python-to-native compiler? I'd be interested in taking a look. Come to think of it, is anyone working on a sexpr-enabled version of Python, or anything similar? I really...
852
by: Mark Tarver | last post by:
How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.