Greetings!
So, have anyone started to make some custom syntax definitions for the various laguages out there? Lets share! I wish I could say "I'll start" but I've just started on one so I'm still wrapping my head around it. It still baffles me why colours arent global (like, often i want the same color for strings regardless of laguages for instance)
(apologies if this has been bought up already, I'm the list newbie)
Cheers, johan
I'm working on ActionScript, should have it done soon. I've already done a 'Test Movie' command.
Now if only we could get TextMate not to display the binary .fla file as text...
On Oct 6, 2004, at 9:59 AM, Johan Sörensen wrote:
Greetings!
So, have anyone started to make some custom syntax definitions for the various laguages out there? Lets share! I wish I could say "I'll start" but I've just started on one so I'm still wrapping my head around it. It still baffles me why colours arent global (like, often i want the same color for strings regardless of laguages for instance)
(apologies if this has been bought up already, I'm the list newbie)
Cheers, johan
-- Johan Sørensen Professional Futurist www.johansorensen.com _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
cool.
if you don't want to display the .fla file at all you could add it to the exclude regex in the info panel for the folder/project...
Allan, do you have any bundles for cocoa/objective-c apart from the ones that ship with TM? or are those the ones you're using (unless of course you develop TM in xcode ;) )?
On Wed, 6 Oct 2004 10:04:26 +0100, Rob Bevan robbevan@xpt.com wrote:
I'm working on ActionScript, should have it done soon. I've already done a 'Test Movie' command.
Now if only we could get TextMate not to display the binary .fla file as text...
On Oct 6, 2004, at 9:59 AM, Johan Sörensen wrote:
Greetings!
So, have anyone started to make some custom syntax definitions for the various laguages out there? Lets share! I wish I could say "I'll start" but I've just started on one so I'm still wrapping my head around it. It still baffles me why colours arent global (like, often i want the same color for strings regardless of laguages for instance)
(apologies if this has been bought up already, I'm the list newbie)
Cheers, johan
-- Johan Sørensen Professional Futurist www.johansorensen.com _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
I've done an ActionScript bundle for TextMate. You'll find it here: http://type.robbevan.com/robbish/2004/10/actionscript_fo.html
This adds syntax colouring and a 'Test Movie in Flash' command, so you can select a .fla file in your project and have it open and run in Flash. I'll be adding Snippets etc. later. Unfortunately, at the moment, .fla files (and all other binary files I guess) display as text, but you guys will fix that soon, yes?
You can download the bundle or an installer which adds it to /Library/Application Suppport/TextMate/Bundles.
BTW, I'm not sure if anyone else has reported this (haven't had a chance to go back through the hundreds of posts on this list!), but double-clicking a bundle errors if the ~/Library/Application Suppport/TextMate/Bundles directory doesn't exist (and there's a spelling mistake in the error dialog: "An error occurred WHY copying the bundle".
Cheers, Rob
On Oct 6, 2004, at 10:04 AM, Rob Bevan wrote:
I'm working on ActionScript, should have it done soon. I've already done a 'Test Movie' command.
Now if only we could get TextMate not to display the binary .fla file as text...
On Oct 6, 2004, at 9:59 AM, Johan Sörensen wrote:
Greetings!
So, have anyone started to make some custom syntax definitions for the various laguages out there? Lets share! I wish I could say "I'll start" but I've just started on one so I'm still wrapping my head around it. It still baffles me why colours arent global (like, often i want the same color for strings regardless of laguages for instance)
(apologies if this has been bought up already, I'm the list newbie)
Cheers, johan
-- Johan Sørensen Professional Futurist www.johansorensen.com _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 9. Oct 2004, at 10:42, Rob Bevan wrote:
This adds syntax colouring and a 'Test Movie in Flash' command, so you can select a .fla file in your project and have it open and run in Flash
I'm assuming you're using $TM_FILEPATH for this? This is the file path of the file open in the editor. It sounds like I should introduce $TM_PROJECT_SELECTED_FILE(S) or similar for such type of actions?
[...] Unfortunately, at the moment, .fla files (and all other binary files I guess) display as text, but you guys will fix that soon, yes?
Yes, this will be fixed in 1.0.1, although I'm not entirely sure what the best fix is, there are (at least) 3 solutions:
1) only open files declared in the Info.plist disadvantage: what about .htaccess, .bashrc, etc. 2) give a regex for known good types disadvantages: similar to #1, but may be easier to change 3) give a regex for known bad types disadvantages: many files can still be opened as text, since this list can't be exhaustive
BTW, I'm not sure if anyone else has reported this (haven't had a chance to go back through the hundreds of posts on this list!), but double-clicking a bundle errors if the ~/Library/Application Suppport/TextMate/Bundles directory doesn't exist (and there's a spelling mistake in the error dialog: "An error occurred WHY copying the bundle".
Fixed that 20 minutes ago! :)
Kind regards Allan
[...] Unfortunately, at the moment, .fla files (and all other binary files I guess) display as text, but you guys will fix that soon, yes?
the best fix is, there are (at least) 3 solutions:
- only open files declared in the Info.plist disadvantage: what about .htaccess, .bashrc, etc.
- give a regex for known good types disadvantages: similar to #1, but may be easier to change
- give a regex for known bad types disadvantages: many files can still be opened as text, since this
list can't be exhaustive
is it not possible to do a file test operation, to check if it is binary? it could still show in the list, perhaps possible to view with external editor, and/or with "File appears to be binary, open anyway?" warning
hp.
On 9. Oct 2004, at 14:53, Hans Petter Eikemo wrote:
is it not possible to do a file test operation, to check if it is binary?
At best only a heuristic. But mixed with encodings, I'm not sure how reliable this will be.
it could still show in the list, perhaps possible to view with external editor, and/or with "File appears to be binary, open anyway?" warning
For Rob's purpose, where he wants the files in the list, to be able to execute commands on these, it probably would be quite irritating with such a requester, each time he selects a .fla file.
Kind regards Allan
On 06/10/2004, at 6:59 PM, Johan Sörensen wrote:
Greetings!
So, have anyone started to make some custom syntax definitions for the various laguages out there? Lets share!
I wish I could say "I'll start" but I've just started on one so I'm still wrapping my head around it. It still baffles me why colours arent global (like, often i want the same color for strings regardless of laguages for instance)
If you're inspired, TM needs JavaScript, Perl, and Python as a starting point... I'd recommend copying one of the existing bundles to your ~/Library/Application Support/TextMate/Bundles/, renaming it, and "having a go"... Allan and Sune were extremely helpful in helping me get the first drafts of the PHP, HTML, HTML-PHP & CSS language definitions ready, and I'll try to help you where ever I can too.
Every language is so different, so rather than TM imposing limitations, it welcomes it all with open arms. Really, you have the power to make a definition for almost anything. I suggested to Allan that the basic default style sheets of PHP/HTML/CSS use a shared colour pallet, but the languages are so different that the rules had to stop there. Quoted strings are red in HTML, CSS and PHP. Variables in PHP and Selectors in CSS are both green, etc etc.
Basically, I had a few days to throw together 4 language definitions, so I "had a go". I'd love suggestions on what I can change in those 4 or so language definitions, and of course you have the power to change these to suit your own needs (as I will to suit my needs).
However, when it came to David's Ruby definitions, we decided to leave the Black/Grey versions as is... for starters, it was used in a lot of the marketing and David's Rails videos, and it looks really cool.
It's also worth pointing out that a lot more features are planned for the next generation of language defs, so it's quite possible a lot of what you want will come through these upgrades anyway.
Justin "I love TextMate" French --- http://indent.com.au http://justinfrench.com
On Oct 6, 2004, at 9:45 AM, Justin French wrote:
Every language is so different, so rather than TM imposing limitations, it welcomes it all with open arms.
Pardon me whilst I brainstorm. What if I could feed TM a grammar (say, in BNF) for a language? Then TM could figure out syntax highlighting from that based on hints, such as "string literal", "variable", "loop construct", etc?
On 6/10-2004, at 17:59, Brian Lalor wrote:
Pardon me whilst I brainstorm. What if I could feed TM a grammar (say, in BNF) for a language? Then TM could figure out syntax highlighting from that based on hints, such as "string literal", "variable", "loop construct", etc?
Something like that _may_ come in a future version. We (Allan and I) have discussed something like that, although only very briefly so far. I think it is a good idea, but some more thought it needed there of course.