473,326 Members | 2,813 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,326 software developers and data experts.

tool for syntax coloring in html

in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?

Thanks.

Xah
xa*@xahlee.org
∑ http://xahlee.org/

Oct 26 '05 #1
11 1830
Xah Lee wrote:
in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?


It is and its called highlight (available in most linux distributions)

--
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

Gravity isn't MY fault--I voted for velcro!
Oct 26 '05 #2
Xah Lee wrote:
in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?


I use SilverCity and this recipe to produce colored code listings for
the pysqlite documentation:
http://aspn.activestate.com/ASPN/Coo.../Recipe/252170

This is the documentation source:
http://initd.org/svn/pysqlite/pysqli...sage-guide.txt

This is the result:
http://initd.org/pub/software/pysqli...age-guide.html

HTH,

-- Gerhard

Oct 26 '05 #3
Gerhard wrote:
http://initd.org/pub/software/pysqli...age-guide.html


Can I suggest you to use a larger font for the code?It is pretty
difficult to parse with my
current screen resolution. BTW, pysqlite2 is pretty cool ;)

Michele Simionato

Oct 26 '05 #4
Xah Lee wrote:
Is there a tool that produce codes in html with syntax coloring?


I'm sure there's a million-and-one tools that will do what you want, and
suggest you search Google.

Personally, I've used vim to do this in the past. The following
generates marked-up code:

:runtime syntax/2html.vim

Regards,
Steve
--
Stephen Hildrey
E-mail: st***@uptime.org.uk / Tel: +442071931337
Jabber: st***@jabber.earth.li / MSN: fo*@hotmail.co.uk
Oct 26 '05 #5
I use Silvercity for my web site. SilverCity is a Python interface to
the Scintilla lexers. It's available at
http://silvercity.sourceforge.net/

I find the output from silvercity a bit verbose, so I have written a
few Python classes for cleaning up the output. The code is available at
http://fauskes.net/nb/syntaxhighlighting/

- Kjell Magne Fauske

Oct 26 '05 #6
I use gvim.

regards,

Philippe

Xah Lee wrote:
in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?

Thanks.

Xah
xa*@xahlee.org
? http://xahlee.org/


Oct 26 '05 #7
Xah Lee wrote:
.....
Is there a tool that produce codes in html with syntax coloring?
Does that mean you intend simply posting links to your
'articles' on computing in future?
Thanks.


I am confident a lot of us would be (thankful if you did).
Oct 26 '05 #8
Xah Lee wrote:
Is there a tool that produce codes in html with syntax coloring?


Sure. It's called "Cascading Style Sheets" (CSS), which is how these
sites have done it (as you can see if you "view source"). See articles
on SitePoint.com (and MANY others) for info. But this really has
nothing to do with Perl.

Oct 26 '05 #9

Xah Lee wrote:
in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?


I've used GNU Source-highlight with success.

http://www.gnu.org/software/src-high...highlight.html

Oct 26 '05 #10
A really easy one to use is Doxygen

Good luck,
Dimitri

Googmeister wrote:
Xah Lee wrote:
in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?


I've used GNU Source-highlight with success.

http://www.gnu.org/software/src-high...highlight.html


Oct 26 '05 #11
I use htmlize for that. you can try that.
http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el

Oct 29 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ruthless | last post by:
hello. I've got a simple question. I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++, bash etc. I've only found some CGI, apps, modules for Apache - but i can't use...
50
by: Edward K. Ream | last post by:
I would like to say a few (actually more than a few) words here about some recent discoveries I have made concerning the interaction of Leo and Python. If you don't want to hear an inventor enthuse...
2
by: Larry Werner | last post by:
We have source files with extension ".pc", which we would like to be treated by the text editor as if they are ".cpp" files for the purpose of syntax coloring. In Visual C++ 6.0 we could do that...
3
by: Gordan | last post by:
I'm just wondering - is there a JS developing tool? I'm using Notepad, IE and a lot of F5 key :-)) using some better text editor that highlights code is definitely better but I never found...
0
by: Markk | last post by:
Hi. I would like to ask If somebody don't have any small sample to coloring XML syntax, e.g. in RichTextBox. It can be in VB.NET or C#. I watched on SharpDevelop, but I could not understand...
0
by: PASQUALE | last post by:
Hi, I am new to DB2 on AS/400. Actually I use the 'Run SQL Scripts' - tool in iSeries Navigator to access the database by SQL. The question is: Is there an alternative (or maybe better) tool for...
2
by: Dan | last post by:
I'd like to show some XML text into an (editable) text box with some syntax coloring for tags, attributes etc. I don't need a full-blown commercial control, I'd just like to do some coloring on...
7
by: braver | last post by:
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for...
3
by: sandromani | last post by:
Hi all, I am writing a webbased notepad and want to include syntax-coloring. The approach I have used is to set the font color and background color of the textarea to transparent, and place the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.