Thank you <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 14px; border-collapse: collapse; ">Rob McBroom</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">-----------------------------------------------------<br>
</span></font><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 6:02 AM, Rob McBroom <span dir="ltr"><<a href="mailto:mailinglist0@skurfer.com">mailinglist0@skurfer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Dec 12, 2010, at 12:39 AM, trout swim wrote:<br>
<br>
> while debugging some javascript i have come to see that TexMate has an issue with the CSS selector, border-width written in Javascript as style.borderWidth<br>
><br>
> If i write style.backgroundColor, it will show in color green in Textmate.<br>
><br>
> I have retained the TextMate default color scheme in preferences/fonts colors/Mac classic.<br>
><br>
> when i write style.borderWidth it stays black as if it were a variable.<br>
<br>
</div>This just happens because the JavaScript grammar in TextMate isn't aware of a constant named “borderWidth”. The maintainer of that bundle is probably on this list and can add it. (Or you could add it yourself, but language grammars can be pretty intense.)<br>
<div class="im"><br>
> I would assume the Browser compiler or interpreter engine ? would accept the Javascript script as is, and that TextMate would not be adding any encoding to its interpretation of the script while showing style.borderWidth as invalid.<br>
<br>
<br>
</div>Yes, the code (in any language) will work if it's written correctly, regardless of how TextMate displays it.<br>
<br>
--<br>
Rob McBroom<br>
<<a href="http://www.skurfer.com/" target="_blank">http://www.skurfer.com/</a>><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div>