Mankz’s Blog

Update: JavaScript-beautifier bookmarklet – now works on selected text too

Posted in Misc by Mats Bryntse on October 2, 2009

Updated my bookmarklet which does syntax highlighting and coloring (based on 2 other scripts). It now supports coloring of selected text which should come in handy, for example in forum posts like these:

Code

Try it out yourself on these posts, just select the code text and fire the bookmarklet:

http://www.codetoad.com/forum/15_28462.asp
http://www.extjs.com/forum/showthread.php?p=392611#post392611

The source for the bookmarklet can be found in the Ext forums:

http://www.extjs.com/forum/showthread.php?p=393025#post393025

Enjoy!

Tagged with:

3 Responses

Subscribe to comments with RSS.

  1. Artur Bodera said, on October 19, 2009 at 1:29 pm

    It’s broken man. There is some trash in the code, but even after removing from beginning and tail it does not work.

  2. Mats Bryntse said, on October 19, 2009 at 1:34 pm

    Posting code on wordpress is a sad story. Try grabbing the source from here instead:

    http://www.extjs.com/forum/showthread.php?p=393025#post393025

  3. Olle Jonsson said, on November 12, 2009 at 3:16 pm

    Great bookmarklet. Thanks.


Leave a Reply