[SVN] attribute/scope for "highlight current line" feature ?

Allan Odgaard allan at macromates.com
Thu Jun 23 00:12:53 UTC 2005


On 22/06/2005, at 16.07, Peter Traskalik wrote:

> I'm wondering where to set the color of the "Hightlight Current  
> Line"-feature.
> Is this a Scope or Attribute ? Where can i adjust it ?
>
> does it make sense to edit this in the Theme Editor ?
> Or is it  Theme-dependent ?

It's a setting in the theme editor. In the textual editing of styles  
you'll have to enter:
    lineHighlight = "#RRGGBB[AA]";

It can only be set for a top scope (i.e. you can't set it for e.g.  
“string”, but you can set it for “source.perl” or similar, normally  
though the scope would be blank for this setting).

> BTW: Thanks for your good work Alan, just installed b13 everything  
> works fine :-)

Thanks! Starting with 1.1b13 you should btw be able to fix that issue  
with balanced parenthesis and HTML in qq(…) perl strings.

Something like this would work (I think):

     {   name = "string.unquoted.qq.perl";
         begin = "qq\\("; end = "\\)";
         patterns = (
             { include = "#qq_string_content"; },
             { include = "source.sql"; },
             { include = "text.html.basic"; }
         );
     },

...in the repository...

     qq_string_content = {
         begin = "\\("; end = "\\)";
         patterns = (
             { include = "#qq_string_content"; },
             { include = "source.sql"; },
             { include = "text.html.basic"; }
         );
     };




More information about the textmate-dev mailing list