I have just tried enabling using Textmate from Apple's Mail application to get better text editing. Works fine, but one thing I miss from Mail is that text at different quote levels is coloured differently. This would seem a simple enough thing to do (I would have to do a bit of reading up though), but has anyone already done this?
Dave.
Dave Baldwin wrote:
I have just tried enabling using Textmate from Apple's Mail application to get better text editing. Works fine, but one thing I miss from Mail is that text at different quote levels is coloured differently. This would seem a simple enough thing to do (I would have to do a bit of reading up though), but has anyone already done this?
Yes, the mail grammar already has scopes for this, and a few themes take advantage of them. See the sections of the manual about themes and scope selectors for an explanation of how to change your theme.
-Jacob
On Mar 19, 2007, at 11:42 AM, Dave Baldwin wrote:
I have just tried enabling using Textmate from Apple's Mail application to get better text editing. Works fine, but one thing I miss from Mail is that text at different quote levels is coloured differently. This would seem a simple enough thing to do (I would have to do a bit of reading up though), but has anyone already done this?
quote level one text has a scope selector of "markup.quote.markdown", while quote level two has scope selector "markup.quote.markdown markup.quote.markdown" and so on (i.e. 3 of those for level 3 etc). So you can target those scope selectors in your theme, and you'll get the desired coloring.
Put "text.mail" in front if you only want this to happen in mail, and not in markdown as well.
Dave.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
Hi Haris,
I tried what you suggested and no joy. Using show scope gives me text.mail.markdown and text.html.markdown everywhere, i.e. doesn't change with quote level. The file type is shown as Mail.
I am running version 1.5.5 build 1368.
Thanks,
Dave.
On 19 Mar 2007, at 16:12, Charilaos Skiadas wrote:
On Mar 19, 2007, at 11:42 AM, Dave Baldwin wrote:
I have just tried enabling using Textmate from Apple's Mail application to get better text editing. Works fine, but one thing I miss from Mail is that text at different quote levels is coloured differently. This would seem a simple enough thing to do (I would have to do a bit of reading up though), but has anyone already done this?
quote level one text has a scope selector of "markup.quote.markdown", while quote level two has scope selector "markup.quote.markdown markup.quote.markdown" and so on (i.e. 3 of those for level 3 etc). So you can target those scope selectors in your theme, and you'll get the desired coloring.
Put "text.mail" in front if you only want this to happen in mail, and not in markdown as well.
Dave.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
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 19. Mar 2007, at 17:38, Dave Baldwin wrote:
I tried what you suggested and no joy. Using show scope gives me text.mail.markdown and text.html.markdown everywhere, i.e. doesn't change with quote level. The file type is shown as Mail.
Did you disable the Markdown bundle in the Bundle Editor → Filter List…?
On 19 Mar 2007, at 17:53, Allan Odgaard wrote:
On 19. Mar 2007, at 17:38, Dave Baldwin wrote:
I tried what you suggested and no joy. Using show scope gives me text.mail.markdown and text.html.markdown everywhere, i.e. doesn't change with quote level. The file type is shown as Mail.
Did you disable the Markdown bundle in the Bundle Editor → Filter List…?
Yes and re-enabling it fixed the problem. Anyway for a bundle to check any bundles it depends on are enabled, or even to force them to be enabled?
Thanks, Dave.
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 20. Mar 2007, at 09:24, Dave Baldwin wrote:
On 19 Mar 2007, at 17:53, Allan Odgaard wrote:
On 19. Mar 2007, at 17:38, Dave Baldwin wrote:
I tried what you suggested and no joy. Using show scope gives me text.mail.markdown and text.html.markdown everywhere, i.e. doesn't change with quote level. The file type is shown as Mail.
Did you disable the Markdown bundle in the Bundle Editor → Filter List…?
Yes and re-enabling it fixed the problem. Anyway for a bundle to check any bundles it depends on are enabled, or even to force them to be enabled?
We presently have no dependency system among bundles, no.