views:

409

answers:

5

My co-founder is currently asking on our blog for an embeddable code widget.

http://devver.net/blog/2008/10/someone-please-build-an-awesome-embeddable-code-widget/

Basically we want something like http://pastie.org/ or http://codepad.org/ but we really want to embed the code section in our blog. We know there are plugins for common blogs and server side solutions, but it would be great to be able to just embed a little javascript and have nicely formatted code anywhere...

Does something like this exist? Have we just missed it?

+5  A: 

I think you want a javascript syntax highlighter

Sometimes you just keep thinking in the wrong keywords ;-)

Jauco
Yeah we might end up with syntax highlighter, but we really want it an embeddable widget that is hosted elsewhere. Some people aren't hosting their own blogs and don't deal with managing / hosting / or upgrading the javascript includes required for the google syntax highlighter.
danmayer
Hmmm, you could paste the javascript inside the html of the template. Otherwise a google pages account is cheap and easy. I don't really expect you need to manage/host it that much. It's just drop it on once and then use it.
Jauco
A: 

Check out CodeRay and UltraViolet. They're both quite good and easy to use.

slothbear
+2  A: 

I think some of the answers to this question might be helpful for your question.

Onorio Catenacci
A: 

We had a user point out a WordPress plugin that uses Gist to do exactly what we were asking for...

http://pomoti.com/gist-it-english

Even if you don't use the plug in it looks like a feature of Gist lets you embed the code anywhere you want on the web. http://gist.github.com

Looks pretty sweet. Thanks goes to Dirceu Jr.

danmayer
A: 
Eugene Lazutkin