Multidingus

Alan Hogan contact at alanhogan.com
Fri Oct 19 17:07:29 EDT 2012


Here’s a tiny bookmarklet that can be run on Babelmark 2 as it stands today, that replaces all the <pre> elements on the page with an HTML preview:

javascript:$('pre').each(function(i, el){ var html = $(el).text(); $(el).replaceWith($('<div style="border: 1px solid #aaa; border-radius: 4px" />').html(html)); });

Or, you may drag it into your bookmarks page from here:

<http://peg.gd/2IU>

It’s not Good Code and doesn’t do anything useful like add tabs to switch between representations, but hey, I spent five minutes on this and it’s kind of useful, so I’m sharing it.

AH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20121019/61f52b41/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4887 bytes
Desc: not available
Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20121019/61f52b41/attachment-0001.bin>


More information about the Markdown-Discuss mailing list