Syntax highlighting in web-based code samples?

Subject: Syntax highlighting in web-based code samples?
From: "Mike O." <obie1121 -at- yahoo -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Tue, 26 Jul 2005 12:24:24 -0700 (PDT)


Does anybody know a tool or technique for including code samples, with
color syntax highlighting, in an html page? I'm talking about the
"smart" color highlighting that a code editor uses to display your
code.

I can think of several excruciating hand-tagging ways to do this, but
no easy ways. It would be nice to find a code editor that can export
syntax-highlighted code as an html.

Background: the other day I found my client (CEO of a small startup)
writing a technical white paper, and he was including code samples as
screenshots from his code editor, in order to preserve the color syntax
highlighting. I'm using similar code samples in my web-based
documentation, but I'm using html, not graphics, so it's all
black-and-white. For the record, the code is C++ and Java.

Mike O.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Now Shipping -- WebWorks ePublisher Pro for Word! Easily create online
Help. And online anything else. Redesigned interface with a new
project-based workflow. Try it today! http://www.webworks.com/techwr-l

Doc-To-Help 2005 now has RoboHelp Converter and HTML Source: Author
content and configure Help in MS Word or any HTML editor. No
proprietary editor! *August release. http://www.componentone.com/TECHWRL/DocToHelp2005

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- techwr-l -dot- com
Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.



Follow-Ups:

Previous by Author: Re: Certification--a new concept. Discuss.
Next by Author: Re: Syntax highlighting in web-based code samples?
Previous by Thread: RE: WebHelp Pro
Next by Thread: Re: Syntax highlighting in web-based code samples?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads