Saturday, August 24, 2013

Formatting code blocks from Kindle

I was ramping up on android using a Kindle book and realized Kindle for Mac app does a terrible job of copy/pasting contents to an IDE/text editor. I created a simple ruby script which tries to properly format code blocks copied from the Kindle app and then replaces the contents of your clipboard with *somewhat* better formatted code. Not perfect by any means, but made my life a little easier. 
 
Before:












After:























Check it out on github -> here <-

1 comment:

  1. I am a publishing company that have a few clients that want their books coverted to Kindle Around Town We are conversion service providing company based out of India.

    ReplyDelete