Working with code samples when they're images on a blog
Quick question about something I've ran into alot recently:
So many times I'm looking for information from blogs, and find really interesting and helpful examples, only to discover the blog author has shown the code as an image..
Wi开发者_如何转开发th no cut-and-paste available, how does everyone handle this? Find the code elsewhere or type it all out?
use an OCR?
Here is a list of OCR software
Personally I don't really learn anything from just cutting and pasting so writing something out by hand is more beneficial. Also, code on blogs is rarely production quality anyway so you'll need often need to improve it with error handling, refactor names etc. so you're going to be changing it anyway - might as well write it out!
Maybe a quick ocr service can save the situation... http://www.free-ocr.com/ (only for example)
精彩评论