The following ticket was opened as follows: Status: open, reported by Ryan Cornelsen on 2009-08-20 (request)
It reports as currently still open after 2 years…
Is there any news of status update on this request, as I would too like to re-iterate the request as it is an invaluable option…
Regards,
Basil
I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
While I have enabled the scroll bars by default now (and there are good reasons why), TextMate should work with the default configuration of the OS. Will there be an update that makes TextMate more amenable to Lion's new UI elements?
Max
Hi again,
After playing around with it it only works if there is nothing before it. When I start a line with then I have 2 different colors one for % and one for the name of the array.
But the moment I put even a space before the %array or declare it or it's inside a parenthesis of a function then it does not work it gets a generic color...
Thanks for your help in advance.
Best,
John
Message: 6
Date: Fri, 14 Oct 2011 04:54:17 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: Coloring Syntax
Message-ID: <10089806-887A-43E8-BED0-241FD2E1BEAA(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello John,
You can match multiple tokens on the same line and assign them to different coloured groups like this:
      {   name = 'meta.entity.ksp';
         match = '^(\%)([a-zA-Z0-9_]\w*)';
         captures = {
            1 = { name = 'punctuation.ksp'; };
            2 = { name = 'entity.ksp'; };
         };
      },
Notice that both tokens to be identified have parentheses around them in order to be captured. The "captures" list follows standard regexp convention, that is, 0 is the matched string, 1 is the first matched group in parentheses, 2 is the second matched group, and so on.
Not specifying the "captures" list (like in your example) is the same as using capture "0," which is the entire matched string.
In my example, I assigned a different syntax scope identifiers to each token, allowing me to colour them individually.
By the way, the character class "[a-zA-Z0-9_]" is exactly what "\w" represents, so you could shorten your pattern to,
   match = '^(\%)(\w+)';
which matches at least one, possibly more, contiguous word characters.
I hope this helps.
   dZ.
On Oct 11, 2011, at 13:27, John Relosa wrote:
> Hello,
>
> I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
>
> {name = 'entity.ksp';
> match = '(\%)[a-zA-Z0-9_]\w*';
> },
>
> % is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
>
> The problem is that the whole word including the "%" symbol gets colored.
>
> So here is my question to the textmate gurus.
>
> Is there a way to have the "%" symbol a different color and the word array a different color?
>
> What would be the code to accomplish that. Any pointers or ideas would be appreciated.
>
> Thank you.
>
> John
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
Message: 7
Date: Fri, 14 Oct 2011 05:06:44 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: problem with Lion's new hidden scroll bars
Message-ID: <7B5F91DF-B98E-429D-A2F1-A839B2E188AF(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello,
   I see in that FAQ that the scroll-bars visibility issue is indeed a "frequently asked question," but it doesn't appear to be even a "singularly answered question."
   Is there a work-around?
   By the way, thanks for the link. TextMate not re-opening its windows on restarting was driving me crazy!
   dZ.
On Jul 21, 2011, at 08:25, Luc Heinrich wrote:
> On 21 juil. 2011, at 14:05, Max Lein wrote:
>
>> I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
>
> http://wiki.macromates.com/Troubleshooting/Lion
>
> --
> Luc Heinrich - luc(a)honk-honk.com
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 41, Issue 11
****************************************
Hi dZ,
Thanks for your help.
At first this didn't work in my bundle even though it should, so I created a new generic bundle besides the generic keyword and string, I pasted the code you wrote and it worksÂ
ONLY if the %array[] starts at the beginning of the text. If I need to declare it (in my syntax: declare %array[16] or if it's inside a function as an argument or parameter) then it does not work...
Even then that (starting the %arr[] in the start of a line) does not work in my bundle either obviously it has other code that might be conflicting...
Unfortunately I do not know enough to fix it myself so any input or help is greatly appreciated.
This question expands to the rest of the syntax of my language:
$variable
@strings_variable
!string_array etc...
but once I figure out how to color the signifiers different for one then the rest should be easy.
Thanks,
JohnÂ
-------------------------------------------------
Hello John,
You can match multiple tokens on the same line and assign them to different coloured groups like this:
      {   name = 'meta.entity.ksp';
         match = '^(\%)([a-zA-Z0-9_]\w*)';
         captures = {
            1 = { name = 'punctuation.ksp'; };
            2 = { name = 'entity.ksp'; };
         };
      },
Notice that both tokens to be identified have parentheses around them in order to be captured. The "captures" list follows standard regexp convention, that is, 0 is the matched string, 1 is the first matched group in parentheses, 2 is the second matched group, and so on.
Not specifying the "captures" list (like in your example) is the same as using capture "0," which is the entire matched string.
In my example, I assigned a different syntax scope identifiers to each token, allowing me to colour them individually.
By the way, the character class "[a-zA-Z0-9_]" is exactly what "\w" represents, so you could shorten your pattern to,
   match = '^(\%)(\w+)';
which matches at least one, possibly more, contiguous word characters.
I hope this helps.
   dZ.
On Oct 11, 2011, at 13:27, John Relosa wrote:
> Hello,
>
> I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
>
> {name = 'entity.ksp';
> match = '(\%)[a-zA-Z0-9_]\w*';
> },
>
> % is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
>
> The problem is that the whole word including the "%" symbol gets colored.
>
> So here is my question to the textmate gurus.
>
> Is there a way to have the "%" symbol a different color and the word array a different color?
>
> What would be the code to accomplish that. Any pointers or ideas would be appreciated.
>
> Thank you.
>
> John
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
Message: 7
Date: Fri, 14 Oct 2011 05:06:44 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: problem with Lion's new hidden scroll bars
Message-ID: <7B5F91DF-B98E-429D-A2F1-A839B2E188AF(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello,
   I see in that FAQ that the scroll-bars visibility issue is indeed a "frequently asked question," but it doesn't appear to be even a "singularly answered question."
   Is there a work-around?
   By the way, thanks for the link. TextMate not re-opening its windows on restarting was driving me crazy!
   dZ.
On Jul 21, 2011, at 08:25, Luc Heinrich wrote:
> On 21 juil. 2011, at 14:05, Max Lein wrote:
>
>> I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
>
> http://wiki.macromates.com/Troubleshooting/Lion
>
> --
> Luc Heinrich - luc(a)honk-honk.com
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 41, Issue 11
****************************************
Hello,
I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
{name = 'entity.ksp';
match = '(\%)[a-zA-Z0-9_]\w*';
},
% is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
The problem is that the whole word including the "%" symbol gets colored.
So here is my question to the textmate gurus.
Is there a way to have the "%" symbol a different color and the word array a different color?
What would be the code to accomplish that. Any pointers or ideas would be appreciated.
Thank you.
John
I thought I would give ctags in Textmate a try. I installed the TmCodeBrowser.tmplugin and got stuff in the CodeBrowser window only for C. ctags is supposed to work for lots of languages so I tried Pascal and Python but the CodeBrowser window remained empty.
To attempt further failure, I downloaded the ctags source and an Ada language extension for ctags. I did the minor editing required of the ctags source to incorporate the Ada thing and built it. It was installed in /usr/local/bin so I moved it to /usr/bin (after re-naming the ctags that was originally there) because /usr/bin appears before /usr/local/bin on my PATH.
Same results--C only.
I can run ctags on an Ada file and a tags file is generated in the same directory that looks like it has lots of relevant stuff in it, so why doesn't the TmCodeBrowser.tmplugin pick it up?
Ideas?
Jerry
I forked sql.tmbundle on github, installed it in my Bundles directory,
and started editing the syntax via the Bundle Editor. They worked,
and I committed and pushed the changes; they ended up in a .tmDelta
file, which sounds right. But a co-worker who cloned the repository
isn't able to install it; TextMate complains that info.plist is
corrupt.
Meanwhile, TextMate somehow deleted all BUT the info.plist and tmDelta
files. Is that normal, too? I pushed that version, but he gets the
same corruption error there. We're both on 1.5.10 (1631), OSX 10.6.8.
Jay Levitt
Hi
I mistyped my email address during purchase, and my license key was
forwarded to someone else email. I sent in requests for another license key,
but I have not received any keys yet. Would you please help me renew my
license key?
The mistyped email was csc326(a)gmail.com, and my correct email is this email(
csc823(a)gmail.com).
Thanks,
Cuong Cu.
Actually, not a newbie, been using Textmate for years but
I'm wondering about something I'm seeing that's obviously
an error or warning indicator.
Bundle: PHP
Version: 1.5.10
Database: MySQL
OS: some flavor of Linux - someone else is hosting
Here's an example of the code
$HTTP_POST_VARS['guest0_zipcode']=$row[9];
Under the string "guest0_zipcode" is dotted red/white
which I assume to be an error or warning but I have no
clue what it really means. I'm baffled, can't find it
in the manual, (or I've completely overlooked it).
I'm using about 20 other variables with the same prefix,
guest0_ (yes, that's a zero, not an OH) and none of them
have the dotted line under them.
Another tidbit - every use of the user-defined variable "zipcode"
is flagged with this indicator, e.g.
$HTTP_POST_VARS['guest0_zipcode']=$HTTP_POST_VARS['zipcode'];
and
$HTTP_POST_VARS['zipcode'] . "',
Is there something magical about the word zipcode in Textmate? I'm
completely stumped.
Anyone have any insight to what's going on?
thanks
Hi,
Is it possible to disable the help-overlay for functions in the R / Rdaemon package?
(so if i start to write a function like mean( … I get a small yellow overlay window with the possible arguments etc.)
It sometimes takes really long on my machine till the overlay appears after I type a function
and during that time, I can't do anything except to wait.
Also, when I mistype a function-name, it seems like this help mechanism is searching even longer since it probably loops through all the function-names.
This half-second in which I can't do anything is kind of annoying and most of the time I don't really get important informations through this overlay window.
thanks!