Is it possible to influence the font size in the HTML output window? Specifically, in the "LaTeX and view" script it seems huge even on my PB 12" screen.
Berndt
On 30/07/2005, at 10.18, Berndt Farwer wrote:
Is it possible to influence the font size in the HTML output window? Specifically, in the "LaTeX and view" script it seems huge even on my PB 12" screen.
Those are set with a style sheet in the support directory. An attempt to provide a unified stylesheet for all HTML output commands. So far it's only very limitedly(is that a word? :p) used, but it is used for the LaTeX command. The file is Support/css/default.css. Either change the file directly in the application dir, or make a local copy under say ~/Library/Application Support/TextMate/Support/css/default.css — but note that the latter might give some problems, and you might have to copy ALL support files with cp -a or similar to make it work. I am pretty sure you have to, in fact.
-- Sune.
On 30/07/2005, at 13.46, Sune Foldager wrote:
[...] Either change the file directly in the application dir, or make a local copy under say ~/Library/Application Support/TextMate/ Support/css/default.css — but note that the latter might give some problems, and you might have to copy ALL support files with cp -a or similar to make it work. I am pretty sure you have to, in fact.
Yes, the entire directory MUST be copied (for some bundles to keep functioning). If you go for this option, it may be easier to do a svn checkout of the directory [1], so you can let svn merge your changes [2] with potential updates to the directory in the future.
Another option is to post your suggested changes to the style sheet, if the text is still readable, we can update the style sheet on the repository, so it'll be default in the future.
[1] mkdir -p ~/Library/Application\ Support/TextMate/Support svn co --username anon --password anon http://macromates.com/svn/ Bundles/trunk/Support ~/Library/Application\ Support/TextMate/Support
[2] svn up ~/Library/Application\ Support/TextMate/Support
Let's say I write img<tab> and then I get the img tag with three attributes to fill in, let's say I want to skip the class attribute, how do I do that? Somewhat intuitive (to me) would be to just hit backspace after the switch to that attribute. So the keytype img<tab>img.jpg<tab>image<tab><backspace> would produce the following code <img src="img.jpg" alt="image" />
Is there something like this?
Andreas
On 31/07/2005, at 10.06, Andreas Wahlin wrote:
Let's say I write img<tab> and then I get the img tag with three attributes to fill in, let's say I want to skip the class attribute, how do I do that?
Not possible -- if you often skip it, I'd suggest removing it from the snippet (IMHO many of the HTML snippets carry too many attributes). If you skip it 50% of the time, you could change the snippet into this:
<img src="$1" alt="$2"${3: class=""} />
That way, when you leave the alt-attribute, you can either do delete + tab to remove and leave snippet, or do arrow right + arrow left to get caret in between the quotes. That's currently the best way to deal with optional arguments in snippets.
Allan, it might be nice then to be able embed placeholders. So we could do things like:
<img src="$1"${2: alt="$3"}${4: class="$5"} />
so to get: <img src="img.jpg" class="thumb" />
you would type: img<tab>img.jpg<tab><delete><tab><tab>thumb<tab>
- Juan
On Jul 31, 2005, at 1:27 AM, Allan Odgaard wrote:
On 31/07/2005, at 10.06, Andreas Wahlin wrote:
Let's say I write img<tab> and then I get the img tag with three attributes to fill in, let's say I want to skip the class attribute, how do I do that?
Not possible -- if you often skip it, I'd suggest removing it from the snippet (IMHO many of the HTML snippets carry too many attributes). If you skip it 50% of the time, you could change the snippet into this:
<img src="$1" alt="$2"${3: class=""} />
That way, when you leave the alt-attribute, you can either do delete + tab to remove and leave snippet, or do arrow right + arrow left to get caret in between the quotes. That's currently the best way to deal with optional arguments in snippets.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 31 Jul 2005, at 19:48, Juan Carlos Anorga wrote:
Allan, it might be nice then to be able embed placeholders. So we could do things like:
<img src="$1"${2: alt="$3"}${4: class="$5"} />
so to get:
<img src="img.jpg" class="thumb" />
you would type: img<tab>img.jpg<tab><delete><tab><tab>thumb<tab>
Great idea Juan, sadly it was asked for many moons ago and at that time it was impossible for Allan to implement it, although he might have worked something out since.
On 31 Jul 2005, at 09:27, Allan Odgaard wrote:
Not possible -- if you often skip it, I'd suggest removing it from the snippet (IMHO many of the HTML snippets carry too many attributes). If you skip it 50% of the time, you could change the snippet into this:
That's was the general idea behind the "too many attributes". That's the full tag, which most of us won't use it most of the time, but if you have them all in there, then each and everyone can change them to their liking or create off-shoot versions of them.
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
On 31/07/2005, at 20.48, Juan Carlos Anorga wrote:
Allan, it might be nice then to be able embed placeholders [...]
Yes, this is on the to-do with several other snippet enhancements. But this is scheduled for after taking care of the project window.