Autoblog is all over the Detroit Auto Show — take a look at the Chrysler Firepower, Jeep Gladiator and Mazda5 and more.

JavaScripte

Syntax Highlighting in JavaScript

Here’s something interesting: dp.SyntaxHighlighter by Alex Gorbatchev is a syntax highlighter for source code—if you include a code excerpt on a web page or weblog entry, you can use this to display it in a nice color-coded format. The color coding works for JavaScript, PHP, SQL, XHTML, XML, VB, and C#. There’s an examples page showing several different languages.

This is meant as a plug-in for weblog systems like Moveable Type, but it should work on any page.  You just need to include a script and style sheet, and call the script at the end of the page.

Also interesting: it’s written in JavaScript. The highlighting is all done on the client side. To use it, you put the code in a <textarea> element with a particular class attribute, and the script included on the page parses the textarea and highlights it. [via Coding Horror]

 

Permalink | Email this | Comments [0]


Recent Entries

 » Live calendar plug-in for Wordpress (1/10/2005)
 » More fun with Greasemonkey (1/10/2005)
 » Greasemonkey: Hacking the Web with JavaScript (1/7/2005)
 » Friday Fun: DHTML Lemmings (1/7/2005)
 » More on Web Apps and the death of the desktop (1/7/2005)


(Add your comments)

Reader Comments

Be the first person to comment on this entry.

Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. Email addresses are never displayed, but they are required to confirm your comments. To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.







Do you want us to remember your personal information for next time?
   


   

Advertisement 

SPONSORED TEXT LINKS

Get your own text link here.

RECENT COMMENTS


MOST COMMENTED ON
(past 60 days)


WEBLOGS, INC. NETWORK

Consumer
Autoblog
Blogging Baby
Engadget
Gadling
hack a day
Joystiq
Luxist
TUAW (Apple)
Technology
Apple (Unofficial)
CSS
Digital Photography
Flash Insider
Google (Unofficial)
Grid Computing
JavaScript
Microsoft (Unofficial)
Office
Open Source
Peer-to-Peer
Photoshop (Unofficial)
RSS
SAS (Unofficial)
Search Engine Marketing
Social Software
Spam
Tablet PCs
VoIP
Yahoo (Unofficial)
Wireless
Bluetooth
Engadget: Cellphones
Engadget: GPS
RFID
Ultra Wideband
WiFi
The WiMAX Weblog
Engadget: Wireless
Wireless Dev
Wireless
Video Games
Blogging E3
Engadget: Gaming
Joystiq
Playstation 3
Video Games
Xbox 2
Media & Entertainment
Art
Design
Digital Music
Documentary Film
Droxy (Digital Radio)
Independent Film
Magazine Design
Nanopublishing
Business
The Mortgages Weblog
Online Finance
Outsourcing
SCM Wire (supply chain)
Life Sciences
The Cancer Blog
The Diabetes Blog
Medical Informatics
Telemedicine
Personal
Brian Alvey
Jason Calacanis
Blog Maverick
Gordon Gould
Judith Meskill
Events
Blogging E3
Blogging ETech
Future of Music
Blogging Milken
Blogging Sundance
Blogging Web 2.0
Other
Weblogs, Inc.


The JavaScripte Blog is part of the Weblogs, Inc. Network — a network of more than 70 blogs.
Here are some recent headlines from our other blogs:

Gadling (travel)
Snowboarding Blog
Where to Get Great Criollo in San Juan
National Geographic picks best travel photos of ‘04
Gadling First Podcast: Eric Stiller (1-10-04)
To Insure or Not to Insure

Luxist (fine living)
Trump Update
Whisky Weekend
George Jensen Silver Auction
The $35,000 a Month Rental
Luxury 5 Star Hotels in Rome

Digital Photography
Olympus EVOLT E-300 - The truth comes out
Lost Your Digital Photos? BusinessWeek tells you to stay calm
Home Inventory : Quicken adds iPhoto Integration
P2P Photo Sharing : PixPO 1.5
How many megapixels do professionals need?
The Cancer Blog
Speedier Pathology Results
Daily blog reading
Biothermy Trials for Prostate Cancer
Vote now for Best New Medical Blog
Colon cancer screening widely underutilized
The Diabetes Blog
Be a Force for Good
Watch That Fat Fast Food
Diabetes Common Problem in the Elderly
Pregnancy Can Spur Onset of Diabetes
What If You Found a Cure, But Can’t Find Funds?
The Mortgages Weblog
Aerial mapping tool
eMagic and partner streamline mortgage process
Support our sister blog
Mortgage lender scores high with Fortune
Welcome to the new world