<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 19, 2011, at 2:06 PM, Brandon M Fryslie wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Somewhat related, is there a way I can apply my own custom CSS to the web preview window?</span></blockquote></div><div><br></div>Not sure of the official answer, but this should work.<div><br></div><div>Copy one of the built-in themes from <font class="Apple-style-span" face="Consolas">/Applications/TextMate.app/Contents/SharedSupport/Support/themes</font> to <font class="Apple-style-span" face="Consolas">/Library/Application Support/TextMate/Themes/Webpreview</font>. (You may need to create that directory if it doesn’t exist.)</div><div><br></div><div>Rename the folder you copied to “newtheme” or whatever.</div><div><br></div><div>Edit <font class="Apple-style-span" face="Consolas">style.css</font>. If you called the folder “newtheme” all of your customizations need to apply to the “.newtheme” class. (so to style <font class="Apple-style-span" face="Consolas"><h2></font>, you define something for “.newtheme h2 {}”, etc.</div><div><br></div><div>You may need to restart TM to get your theme to show up on the drop-down.</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">-- <br>Rob McBroom<br><<a href="http://www.skurfer.com/">http://www.skurfer.com/</a>><br></span>
</div>


<br></div></body></html>