[TextMate] Printing options?

Jan Sabbe jan.sabbe at student.kuleuven.ac.be
Mon Oct 25 13:22:58 UTC 2004


Op 25-okt-04 om 00:27 heeft Allan Odgaard het volgende geschreven:

> So after a few days of (hopefully) well deserved vacation, I'm back to 
> TM development, and I'm currently adding support for printing.
>
> But printing plain text from a plain text editor is really alien to me 
> ;) so I was curious, what options do people expect to see?
>
> I.e. should it always be soft wrapped? Should the font be changeable 
> in the printing dialog, or just use the document font? Should it have 
> the option to print with/without line numbers? Another tab-size? How 
> about syntax-highlight, should that be turned into b/w (there's a 
> quartz filter to turn it into grey-scale by default)? etc. etc.
>
> If you do use/desire printing, let me know which “options” you use 
> (let's try not to mention all the things printing _could_ have) and 
> what stuff you actually do print (as plain text), especially the 
> latter will help me better understand the target audience for this 
> feature!
>
>

Well, if you start implementing stylesheets for syntaxes, maybe you 
could add a print stylesheet for every syntax. There you can set nice 
syntax hilighting colors. (so it doesn't use a black background or 
something :))

Other than that, I would just print it like you see it. If I enabled 
line numbers, print the line numbers, otherwise don't. If I set tab 
size to 3 spaces, use 3 spaces for printing.. I would keep the number 
of print-options to a minimum. Otherwise it's a PITA to find and set 
all the options. (I don't want a KDE nightmare on my mac :-))

Also, it would be nice to keep a folding on the same page. It isn't 
always possible for big foldings, but it would be nice if the following 
is avoided as much as possible:

def goodmorning(name)

--- page end ---

	puts "Goodmorning #{name}! How are you today?"
end




More information about the textmate mailing list