In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
And the different (serif'd) font used to print the preview? Can it be changed?
tia, DW
On 9 Nov 2012, at 11:33, David Whitford wrote:
In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
A screenshot saves 1000 words :)
If it's the default markdown preview the css for that is stored in (assuming TM2)
~/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css l:19 font: 13px "Trebuchet MS", Helvetica, sans-serif;
With the print stylesheet being: ~/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css l:2 font-family: "Palatino", "Book Antiqua", "Baskerville", serif;
You could just change those, but it's pretty easy to create a new one. To create a modified style duplicate one of the existing ones – looks like it adds a class with the name of the folder so if you duplicate bright into newname you'll need to change all the .bright references in style.css to .newname
Hope that helps
George
Thanks a lot George. Sadly I'm on TMv 1.5.11 and there's nothing in .../TextMate except com.macromates.textmate.pid
Are there good reasons to goto TMv2? I seem to recall some troubles, but maybe that was in a public Alpha?
Rgds, DW
--- On Fri, 11/9/12, George McGinley Smith george@gsgd.co.uk wrote:
From: George McGinley Smith george@gsgd.co.uk Subject: [TxMt] Re: Markdown fonts To: "TextMate users" textmate@lists.macromates.com Date: Friday, November 9, 2012, 12:37 PM On 9 Nov 2012, at 11:33, David Whitford wrote:
In brief, does anyone know the font that's used for the
Markdown Bundle's Preview window?
A screenshot saves 1000 words :)
If it's the default markdown preview the css for that is stored in (assuming TM2)
~/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css l:19 font: 13px "Trebuchet MS", Helvetica, sans-serif;
With the print stylesheet being: ~/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css l:2 font-family: "Palatino", "Book Antiqua", "Baskerville", serif;
You could just change those, but it's pretty easy to create a new one. To create a modified style duplicate one of the existing ones – looks like it adds a class with the name of the folder so if you duplicate bright into newname you'll need to change all the .bright references in style.css to .newname
Hope that helps
George
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Nov 9, 2012, at 6:33 AM, David Whitford dw328i@yahoo.com wrote:
In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
And the different (serif'd) font used to print the preview? Can it be changed?
Look in `~/Library/Application Support/TextMate/Pristine Copy/Support/themes`. You can add your own in `~/Library/Application Support/TextMate/Themes/Webpreview`.
If you do, all of your CSS rules need to use the theme’s name as their class.
I’m not sure if printing respects the styles or not, but you should be able to figure it out now that you know where to look.
On 9 Nov 2012, at 11:33 AM, David Whitford dw328i@yahoo.com wrote:
In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
Hi David, Copy and paste into Word suggests the preview is rendering in Trebuchet MS, while the print is done in Palatino... weird.
This might come the System defaults, or safari defaults, or an internal style sheet, I don’t know.
You’re much better off downloading a specialised markdown renderer like Marked.app from the store. It has fantastic export, rendering, styling control, and is $2.00
Best, tim