Home Download Buy Blog Forum Support

Convert selected code to image

Convert selected code to image

Postby otakustay on Sun Jun 30, 2013 5:05 pm

While I frequently screenshot my code in sublime editor for sharing and blogging, I'd be glad to see such a tool which could:

1. When executed, convert my selected code to an image
2. With code highlighting work as expected
3. Auto strip leading spaces, therefore, if all my selected code have at lease 4 leading spaces, then remove the first 4 spaces from each line
4. Either preserving my sublime theme or not is OK, it's not something we must care about

So is there any plugin could do this?

Thanks
otakustay
 
Posts: 4
Joined: Sat May 28, 2011 5:17 am

Re: Convert selected code to image

Postby svenax on Sun Jun 30, 2013 6:18 pm

If you really want to get images of your code, I think screen shots is the way to go. Maybe some screen shot utility can make it easier. That depends on what platform you are using, of course. If you don't necessarily need images, ExportHTML (https://github.com/facelessuser/ExportHtml) can probably help you. Give it a try.
svenax
 
Posts: 150
Joined: Tue Dec 20, 2011 12:47 pm

Re: Convert selected code to image

Postby otakustay on Mon Jul 01, 2013 6:52 am

Mostly I want the image for a part of my code, so the screenshot utility always encounter some problems:

1. If it do not auto-scroll my document, then if my code exceeds one screen, screenshot is not enough
2. If it does auto-scroll, then it always snapshot all my code, I have to crop it myself - a waste of energy and time :(
otakustay
 
Posts: 4
Joined: Sat May 28, 2011 5:17 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 14 guests