[TxMt] Re: Syntax highlighting in APT bundle

Luke Daley ld at ldaley.com
Tue Jan 13 01:40:36 UTC 2009


Hi Trevor,

On 10/01/2009, at 8:58 AM, Trevor Harmon wrote:

> I'm trying out the Almost Plain Text (APT) bundle. It has snippets and
> commands, but for some reason it doesn't do syntax highlighting.

It does for me (I wrote the bundle).

I am not sure why you aren't getting the scoping. What theme are you  
using? (it really shoudn't be that though).

> This
> is strange because the bundle already defines the regex for some  
> scopes:
>
> http://macromates.com/svn/Bundles/trunk/Review/Bundles/Almost% 
> 20Plain%20Text%20(APT).tmbundle/Syntaxes/Almost%20Plain%20Text%20 
> (APT).tmLanguage
>
> I want to try to finish the work and add syntax highlighting support
> myself, but I'm not sure where to begin. For instance, how would I
> make the "comment.line.tilde.apt" patten be highlighted by TextMate as
> a comment? Likewise, how would I make "markup.bold.inline.apt" appear
> in bold?

Both comments and bolding are working for me.

There are other missing apt features though.

-- 

LD.




More information about the textmate mailing list