So you like pasting your code to Pastie, but you've always wished it was easier to include that same code in your blog or webpages? Wish no longer.
Below is an embedded Pastie of a cute little helper I wrote during the process of adding this feature.
Here is an example of how Pastie use's the helper to avoid worrying about all the document.write stuff... and just concentrating on building a straight HTML view.
I'm also thinking of allowing you to pass a param that determines which of the available color themes your Pastie is displayed with.
Any thoughts of ideas? Does this fit the bill for those of you who've been wanting an easier way to get Pastie's into your blogs?
Cool. I vote for Twilight.
Posted by: Robert Bousquet | November 13, 2008 at 05:26 PM
Don't like content in JS.
I can't see it in my feed reader.
Posted by: Xavier Shay | November 13, 2008 at 10:05 PM
You can if you click the link (I see them if I open another tab in NetNewsWire, but you're right, they aren't downloaded in the feed)... someone suggesting having a [noscript] block with a quick link to the Pastie for non-JS or feed-reader people... I think that's about as good a comprise as we're going to get with the JS embed method.
Posted by: Josh Goebel | November 13, 2008 at 11:26 PM
is pastie source available somewhere?
Posted by: john | November 18, 2008 at 10:22 AM
Pastie is closed source.
Posted by: Josh Goebel | November 18, 2008 at 03:19 PM
Thanks again for this great tool. I would love it if there were a few URL params we could pass when embedding the code. As you stated, I would prefer to be able to select a theme - as well as selecting whether or not the line numbers are displayed.
Just my 2 cents.
Posted by: David Tucker | November 18, 2008 at 03:50 PM
Thanks for adding the embed support. I'd like to +1 the option of a full embed (no JS) with theme CSS loaded via an included tag. Would that work?
Posted by: Dr Nic | November 19, 2008 at 02:01 AM
Hi Josh, beautiful work! It would be nice if you'd allow passing a theme param.
Posted by: Janos | November 21, 2008 at 02:44 PM
Absolutely love it! Took a long time to modify my stylesheet to get the Pastie block exactly how I wanted, but I'm loving it!
Posted by: Michael Wales | November 30, 2008 at 08:58 AM
Excellent feature, thanks Dreamer. Also, being able to pick a color theme would be great.
Posted by: Russ Jones | January 04, 2009 at 04:21 AM