Made a disappointing discovery today. Wrote documentation with markdown and created a custom preview theme especially for this documentation. Then tried to print it (to a PDF ofc ^^) and the default theme was used, even though the preview was currently showing my text with my own theme.
Is this an easy fix? Would be a cool feature!
/ Simon
Well, here's one way. The TextMate bundle has a command called "Create HTML from Document" (and another that adds line numbers). Run that on your document, then print the web page it produces.
-Brad
On Dec 8, 2010, at 4:26 AM, Simon Ljungberg wrote:
Made a disappointing discovery today. Wrote documentation with markdown and created a custom preview theme especially for this documentation. Then tried to print it (to a PDF ofc ^^) and the default theme was used, even though the preview was currently showing my text with my own theme.
Is this an easy fix? Would be a cool feature!
/ Simon
On 8 Dec 2010, at 13:26, Simon Ljungberg wrote:
Made a disappointing discovery today. Wrote documentation with markdown and created a custom preview theme especially for this documentation. Then tried to print it (to a PDF ofc ^^) and the default theme was used, even though the preview was currently showing my text with my own theme.
In your custom theme you need to provide a ‘print.css’ file, this is the style used when printing where ‘style.css’ is used only for the screen media.
It sounds like you made your CSS with printing in mind, so a symbolic link from print.css → style.css should do.
Sweet, thanks! :)
Made a disappointing discovery today. Wrote documentation with markdown and created a custom preview theme especially for this documentation. Then tried to print it (to a PDF ofc ^^) and the default theme was used, even though the preview was currently showing my text with my own theme.
In your custom theme you need to provide a ‘print.css’ file, this is the style used when printing where ‘style.css’ is used only for the screen media.
It sounds like you made your CSS with printing in mind, so a symbolic link from print.css → style.css should do.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate