When I use this bundle, it pops up a window with the HTML code rendered, but I cannot for the life of me figure out how to get the HTML so I can use it. Can someone help me?
Somewhat related, is there a way I can apply my own custom CSS to the web preview window?
Thanks Brandon
I usually go into the menu at the top; File / "New From Template", choose "HTML" scroll around some more, and choose from there.
CSS is began from the same menu; File / Plain Text, then at the bottom of the plain text doc one will see the words plain text and some little triangles for clicking on that reveal a menu to choose, CSS is in there.
So it seems a drill down procedure. The Preferences allow for doc of choice to appear at start up.
On Sat, Feb 19, 2011 at 11:06 AM, Brandon M Fryslie bmf@email.arizona.eduwrote:
When I use this bundle, it pops up a window with the HTML code rendered, but I cannot for the life of me figure out how to get the HTML so I can use it. Can someone help me?
Somewhat related, is there a way I can apply my own custom CSS to the web preview window?
Thanks Brandon
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Feb 19, 2011, at 2:06 PM, Brandon M Fryslie wrote:
Somewhat related, is there a way I can apply my own custom CSS to the web preview window?
Not sure of the official answer, but this should work.
Copy one of the built-in themes from /Applications/TextMate.app/Contents/SharedSupport/Support/themes to /Library/Application Support/TextMate/Themes/Webpreview. (You may need to create that directory if it doesn’t exist.)
Rename the folder you copied to “newtheme” or whatever.
Edit style.css. If you called the folder “newtheme” all of your customizations need to apply to the “.newtheme” class. (so to style <h2>, you define something for “.newtheme h2 {}”, etc.
You may need to restart TM to get your theme to show up on the drop-down.