Hi,
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. This is strange because the bundle already defines the regex for some scopes:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Almost%20Plain%20Text...
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?
Thanks,
Trevor
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.
On Jan 12, 2009, at 8:40 PM, Luke Daley 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 did some more investigating and discovered that there's a certain section in my APT file that causes syntax highlighting to fail. To reproduce it, add the following to the top of your APT file:
--- Title --- Date ---
Each line should be prefixed with a single Tab character. This should cause syntax highlighting to mess up.
If you remove the final "---" line or change the amount of whitespace in front of each line, the syntax highlighting suddenly works.
Trevor
On 17/01/2009, at 7:09 AM, Trevor Harmon wrote:
I did some more investigating and discovered that there's a certain section in my APT file that causes syntax highlighting to fail. To reproduce it, add the following to the top of your APT file:
Title
Date
Each line should be prefixed with a single Tab character. This should cause syntax highlighting to mess up.
If you remove the final "---" line or change the amount of whitespace in front of each line, the syntax highlighting suddenly works.
I followed those instructions and couldn't reproduce. Please email me an apt file directly that exhibits the behaviour.