[TxMt] Re: Spelling in comments

Allan Odgaard mailinglist at textmate.org
Mon Aug 11 07:54:38 UTC 2008


On 8 Aug 2008, at 18:44, Mikael Høilund wrote:

> Personally, I use the convention of "#" to start a code comment, and
> "# " to start a text comment. I'm not sure if it's possible to modify
> the Ruby grammar to allow only spell checking for only lines with "#
> ", nor how difficult that would be.

It’s fairly simple. There is a rule to match comments, just duplicate  
it to match your commetns+space (place it above, so it gets to match  
first, since it is a subset of the existing).

Give that a special scope, like comment.line.prose and make a spell  
checking preference target that scope.




More information about the textmate mailing list