views:

260

answers:

8

I have a free Wordpress account, and this means I'm not able to install plugins for syntax highlighting. I'm doing all my source highlighting with pygments offline. This generates HTML code with inline styles ( so that I don't depend on a CSS file ).

Is there an online tool that can do this?

+2  A: 

I don't know if it's exactly what you want.. but http://snipt.org/ is a service I use a lot. Pretty slick, and has most languages

EDIT: You can just use the javascript include if you can't use the plugin.

Dave Morgan
+2  A: 

I use the NeatHighLighter. HTML can be directly copied to Wordpress editor and it doesn't have CSS dependencies

Indeera
I tried pasting some groovy code, but the only formatting I get is some pre tags.
Geo
+1  A: 

http://quickhighlighter.com/

Be sure to click "Comebine styles with HTML"

Jonathan Sampson
Geo
+2  A: 

Scott Hanselman did a blog post on the one he uses a while back: http://www.hanselman.com/blog/BestCodeSyntaxHighlighterForSnippetsInYourBlog.aspx

The tool he used was by Alex Gorbatchev. It was called SyntaxHighlighter

Here are several of the tools listed so far

Micky McQuade
A: 

There are a couple of Wordpress plugins that do this directly from within Wordpress - no need for formatting by hand.

WP-Syntax and Syntax Highlighter Evolved both handle this as Wordpress plugins.

That being said, I've found that the offline solutions provide more flexibility and often better highlighting. I've switched away from the plugins, but they do work.

Reed Copsey
+1  A: 

If you like Pygments to use offline, there is an online version, too.

Pygments - Code Beautifier

Highlights and colors code syntax properly and outputs HTML for web pages (blogs).

http://pygments.org/

Robert Cartaino
do you have a link for the online version?
Geo
http://pygments.org . It's in the post.
Robert Cartaino
A: 

I use the Dottoro Syntax Highlighter. I definitely find that online code highlighter handy. It provides easy customization and supports embedded CSS and JavaScript code blocks within HTML documents.

gumape