PrintWithColors

HowTo.PrintWithColors History

Show minor edits - Show changes to markup

October 15, 2008, at 09:45 UTC by Allan Odgaard - Clarify why there should be no selection when calling the command
Changed lines 3-4 from:

In the TextMate bundle is a command named _Create HTML From Document / Selection_. By calling this command without a selection, a HTML version of your current document is created with CSS that has it styled similar to your current theme.

to:

In the TextMate bundle is a command named _Create HTML From Document / Selection_. By calling this command without a selection¹, a HTML version of your current document is created with CSS that has it styled similar to your current theme.

Changed lines 7-11 from:

If you do this a lot, you can also assign a key equivalent to the command.

to:

If you do this a lot, you can also assign a key equivalent to the command.

- - -

¹ Witha selection, the command generates HTML for just the selection and leaves out the CSS, this is meant e.g. for inclusion in blog posts or similar.

October 15, 2008, at 09:43 UTC by Allan Odgaard - Add article about printing with colors
Added lines 1-7:

If you need to print source code and would like to do so with full syntax highlight then there is a way to do so.

In the TextMate bundle is a command named _Create HTML From Document / Selection_. By calling this command without a selection, a HTML version of your current document is created with CSS that has it styled similar to your current theme.

You can change the output of this command (via the Bundle Editor) to _Show as HTML_ and then simply press ⌘P to bring up the _Print_ dialog after calling the command, or alternatively you can save the HTML and print e.g. from Safari.

If you do this a lot, you can also assign a key equivalent to the command.