Howdy.
Just wanted to let you guys know about my new theme.
http://macromates.com/wiki/Themes/UserSubmittedThemeshttp://textmate.svn.subtlegradient.com/Themes/Brilliance%20Black%
20BETA.tmTheme
I'd like you guys to test it our for me and let me know if any of it
looks ugly or unusable with the code that you use.
I developed primarily for xHTML, CSS, JS, RubyOnRails & Ruby.
I also tested and tweaked it for: actionscript, Ada, ANTLR, asp,
asp.net, C, C++, obj-C, embedded Django, java, markdown, MIPS
Assembler, Perl, PHP, Python, Slate, SQL, xml
XML is currently rather hard to read without a bright monitor.
PHP could use some color tweaks to look less ugly. (even though php
doesn't deserve to look pretty ;) )
I haven't tested it with LaTeX, yet.
I got some great code samples from <insert name here, because I
forgot it>
If anyone uses a language where this theme looks ugly, please let me
know.
The idea of this theme is to be the ultimate theme prototype that all
themes are based on.
I, personally, will use this theme as the template that all my new
themes are based on.
So I really want to get the scopes as perfect and all-encompassing
as possible.
Thanks!
Enjoy ;)
PS: no screenshots of it yet.
thomas Aylott
subtleGradient
oblivious(a)subtleGradient.com
I created a poll on the wiki to get a feel for which languages
TextMate is primarily used with:
http://macromates.com/wiki/Polls/WhichLanguageDoYouUse
Cast as few votes as possible, i.e. do not add points to languages
you rarely use (it is not a poll about how many languages people
know, but which they actually use regularly).
Be vary of edit conflicts on the wiki page. These will be detected
automatically, but needs manual resolving -- it is probably easier to
just start over, if one happens (the wiki presents the diff when
committing the edit when there is a conflict).
I think queuing theory dictates that some edit conflicts are bound to
happen, given the number of subscribers to this list, but I am not
writing specific polling functionality just for this :)
Hi All,
I have been using textmate for a little over a week now and I love
the program. I have been using it for mostly RoR and HTML Development
but I am looking for a bundle that will help me create MySQL DDL
files. Any Ideas?
David Newberger
A search of the ML archives has come up empty, so I turn to the
mothership: I have a problem.
Textmate is selectively refusing to open (or, rather, display) files
that it should have no problem with.
Some quick and dirty testing seems to indicate that this has to do
with specific file extensions. It first manifested with a problem in
using the "Edit in TextMate" command, but now I fear it's more
widespread than that.
First, an example to show what the behavior is like. Then, how it
affects the whole system.
### Illustrative Example ###
At the moment I am writing this email in TextMate, via using the
"Edit in TextMate" command.
The file:
/private/var/tmp/folders.501/TemporaryItems/Trouble with "Edit in
Textmate".mail
opens just fine in TextMate. An experiment shows that I can open it
fine from the Finder by dragging it onto the TM icon.
However, when I tried to write this email from gmail, and used the
"Edit in TextMate" command from within Safari, it changes focus to
TextMate, but no file opens.
A file has been created:
/private/var/tmp/folders.501/TemporaryItems/Loading “Gmail - Compose
Mail”.safari
But textmate won't open it, not via File:Open, not via a drag to the
dock, and not via Get Info association of .safari files with TextMate.
__However__. If I select _more than one_ .safari file in the Finder,
and drag them to the TextMate, a very odd thing happens.
Textmate opens a new project with the three files listed. But
clicking on one of those files doesn't actually open the file:
![TextMate Project Blank Tab](http://images.metacarpal.net/blog/
textmateoddbehavior1.png)
You get a blank tab. Clicking on that tab _does_ display the file:
![TextMate Project Clicked Tab](http://images.metacarpal.net/blog/
textmateoddbehavior2.png)
So there's something odd going on here.
Another wrinkle is that, once you've clicked the tab and closed it
once, it opens properly from the Project drawer. But not from the
Finder or File:Open or the "Edit in TextMate" command.
(Yes, I am OCD about checking things like this out, why do you ask?)
I thought this was just for items in the TemporaryItems folder. But,
it seems, I was wrong about that. I dragged a .safari file to the
desktop and tried to open from there. No dice. Same odd multiple-item
behavior.
### The Real Problem ###
The loss of "Edit in TextMate" from the browser is, for me, bad
enough. I have tasted the "real text editor for the browser" crack,
and I'm hooked.
But what really gets me is that this started with .php files, in
Transmit. And I can't open .php files at all.
I first edited a .php file remotely in Transmit, off my SFTP server.
Saved the contents, got a system beep, closed it. Totally normal,
except that after that, .php files broke.
Same behavior as above: I try double-clicking a .php file in the
Finder, I get TextMate open and nothing else; no document window,
nothing. Multiple .php files = a new project with multiple files in
the drawer. Clicking one gets a blank tab. Clicking the tab shows the
file.
Now, I _can_ edit non-php files remotely in Transmit. HTML works
fine. Python works fine. But no .php
Naturally, I spend most of my remote time editing .php files these
days. :/
I'd prefer not to have to totally nuke TextMate, but I would really
dearly love to have a functional text editor.
Thanks in advance.
Cheers,
--
Josh DiMauro
josh(a)metacarpal.net
http://blog.metacarpal.net
All my troubles with TextMate seem to do with language grammars. Here's
another issue I can't work out on my own...
I'm trying to add " case 'something': " to the Symbol List in the PHP
language grammer. I've added the following pattern:
{ name = 'meta.symbol-list.php';
match = "\bcase\s+[^:]+:";
},
And after also adding a showInSymbolList preference item it does place
all case items into the symbol list. But the unfortunate side effect is
that the text is now not in the keyword.control.php scope, so has no
syntax highlighting.
How to give more than one scope name to a pattern? I don't want to
include ALL the matches for keyword.control.php in my symbol list.
Thanks, Quinn
Hi all,
Recent user of TextMate... I've downloaded the latest bundles via
subversion and have noticed a problem with the vb.asp.net bundle.
If I try to open an .asp file, which is not a .NET file, just plain
asp, there are errors generated in the Console:
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
...about 39 times. I'm not sure if it corresponds to anything in my
.asp file. It's a rather simple file.
Also, if I create a new HTML file using the New from Template -> HTML
command, and I try to insert a <script> tag in the header, TextMate
will make an error sound, and for each key I try to type within the
script tags, the error "ding" sounds. In the Console, many errors like
this are shown:
2006-03-18 22:00:22.896 TextMate[16514] didn't find rule named
source.js.bracketed
2006-03-18 22:00:22.898 TextMate[16514] didn't find rule source.js.bracketed
To get rid of the errors, I deleted the vb.net bundle (I don't do
.NET, so no great loss), but I thought I'd report it.
I suppose I should send this off to support too..
Thanks.
Hey all,
today i've discovered may be a prob with file encoding (???) over
a .txt file.
my pref setup is tuned to UTF-8 and a text file edited by TextMate
was MacOS Roman, something to avoid definitely...
then, using another text editor i've converted this file to UTF-8 and
discovered again that after having edited this file with TextMate the
file becomes again in MacOS Roman...
the symtom is that TextEdit (also setup default to UTF-8) is unable
to open the file.
did other get about the same prob ???
Yvon
I'm helping a group that I consult with in customizing TextMate for
their PHP development.
They have a library of functions within their company that they want
to have syntax-highlighted, similar to the built-in PHP functions.
I accomplished this by creating a custom bundle, making a scope for
their functions and adding the appropriate functions to the patterns
section of the new language file.
My problem is this: In order to get this new scope included with PHP
files, I modified the default PHP.tmbundle with
{ include = 'source.php.ccb'; },
This works great, everything highlights. *But*, now this is a custom
PHP bundle, and any updates to the default will be masked, until the
new default is manually changed.
Is there any way that I can "inject" my new scope into the PHP bundle
without modifying the PHP bundle itself? I tried adding another
language to my custom bundle, and just putting the include line in
for the source.php scope. This disabled all the other PHP functionality.
Thanks for the help,
Ken Scott
I was trying to install the footnote plugin from syncPeople on Rails,
and nothing happened. Then I fiddled around a bit and detected that
Show Scope didn't work either. So I thought maybe there was a problem
with the path $TM_xxx variables (those are paths, mainly, right?). So
using appZapper I did a complete reinstall and I think I've put
everything in the standard place but still no luck, neither plugin
install nor showing of scope works. Any help? I have all bundles
activated and I've also activated the macros using the automation
menu so as to avoid any keyboard mistypings.
Andreas