Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-03-2002, 02:06 PM
|
#1
|
Member
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210
Rep:
|
Converting Text To HTML
I'm trying to convert some python code to HTML. I have found some utilities that will do it, however, for easier reading I would like something that will convert the color of the text as well....any suggestions?
|
|
|
07-03-2002, 02:21 PM
|
#2
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
How are you storing colors in plain text?
|
|
|
07-03-2002, 02:22 PM
|
#3
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
Could alway post this to the python mail list or news group
|
|
|
07-03-2002, 03:30 PM
|
#4
|
Member
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210
Original Poster
Rep:
|
I'm not storing it as plain text, just copying it out of a python shell which has the text formatted in color....
|
|
|
07-03-2002, 05:10 PM
|
#5
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
Do you mean you want to display you python code in html with color syntax high lighting? Kind of like with PHP
when we use the phps extension?
|
|
|
07-03-2002, 05:21 PM
|
#6
|
Member
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210
Original Poster
Rep:
|
iI'm not familiar with php but yes, I want the color coding of the python syntax to be carried over when converting the text to html
|
|
|
07-03-2002, 06:08 PM
|
#7
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
My suggestion would be post a message to one of the Python mailing list info can be found at this link:
http://python.org/psa/MailingLists.html
The python-help@python.org and python-tutor are very helpfull.
|
|
|
All times are GMT -5. The time now is 09:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|