Sublime Forum

Paint box in Sublime

#1

Hi!

Any way to paint this kind of box in Sublime Text? Any package?

http://dl.dropbox.com/u/244084/Captura%20de%20pantalla%202012-03-30%20a%20la(s)%2010.11.49.png

Thanks!

0 Likes

#2

You could probably find something in Python to draw this kind of box, but doing it by yourself is pretty easy.
This is the code that draw your exemple (from TODO package):

def header(self): hr = u'+ {0} +'.format('-' * 76) return u'{hr}\n| TODOS @ {0:<68} |\n| {1:<76} |\n{hr}\n'.format( self.textdecode(datetime.utcnow().strftime('%A %d %B %Y %H:%M')), u'{0} files scanned'.format(self.file_counter), hr=hr)
You can try to make it more generic and create a method (function) that get a text and a size parameters and return/draw it.

0 Likes

#3

Sorry but I’m not expert in Phython :frowning:

I was searching some Package to doing it automatically

0 Likes