When coding, I prefer to have things like this:
something( "blah" );
Rather than:
something("blah");
To accomplish this, I had created a scope called "meta.parentheses"
which only applied if the cursor was between empty matching
parentheses. I then had a snippet, with the spacebar as the key
equivalent and meta.parentheses as the scope, that would insert
[space]$0[space]. This made the spacebar behave normally inside
parentheses unless they were empty, which is what I wanted.
The problem: I noticed this morning that by adding the
"meta.parentheses" scope to a particular Language Grammar, I wasn't
getting updates for that language (my local modified copy taking
precedence).
Now, I probably set this up prior to when TextMate started storing
things as deltas. Is it possible that if I duplicate the change, I
will still see updates to the grammar in the future with my delta
applied?
Or perhaps a better question: I had added my new scope to the PHP
grammar, but I'd really like the behavior in all "text" and "source"
contexts. My searching of the archives led me to some discussions of
applying a snippet to all scopes, but how can I add a scope to all
languages (without missing out on updates)?
Thanks.
Rob
I've been doing some searching today and haven't come up with much
useful information on the subject, so I'm hoping someone here might
know how to add highlighting to just the <?php , <? & ?> tags? I
tried using source.php, but obviously that's too general.
Also, on this topic, is there any place to find good documentation on
the available scope selectors?
Thanks, -Jeff
When I have directory open (in drawer) with files I work on, I create new
document with cmd+N (I'm too lazy and forgetful to hit Cmd+Shift+N ;).
When I save this document in project's directory, it remains open in TM as
an individual file, with it's own window. Even if I open the same file by
clicking in drawer, separate window remains separate and I end up same
document in both tab and window.
Is it possible to automatically "tabify" documents when they're saved in a
directory that's visible in drawer of some open project?
"Open" command does that already.
--
regards, porneL
Hi,
Was wondering if someone could help me with this I've tried but cant
seem to get it working, what i want is to get the text in the example
that reads "THIS SHOULD BUT DOESN'T" to get colored as a comment, (this
is in the scheme bundle),
; THIS GETS COLORED AS A COMMENT
(define (np n m)
; THIS SHOULD BUT DOESN'T
(if (or (= n 1) (= m 1))
1
(+ (np n (- m 1)) (np (- n 1) m))))
Thanks.
Hi,
Is is possible to create a bundle command which would run a specified
command to a remote computer via ssh? I am running Mac OS X, and I use
Samba + ssh to work on my dev environment which is a Linux box.
I repeatedly have to run a command to refresh the environment to check
changes. I tried using quicksilver and the terminal plugin to send the
command, but I couldn't figure out how to have it point the command to
the active terminal window which was already ssh'd to dev box.
I'm thinking the best solution might be to set up passwordless
authentication via SSH and set the remote computer details in the
script?
best,
Charles
Hi everyone,
I've made myself some folding markers for Fortran which look like this :
foldingStartMarker = '(^[\t ]*((?i:real|complex|integer)(.*)\s)*\b
(?i:subroutine|program|module|function)\b(.*)$)|(^\s*\b(\w*)\s*:\s*
\b(?i:do)\b|^\s*\b(?i:do)\b)|(^\s*(\b(?i:IF)\b)(.*)(\b(?i:THEN)\b))|(^\s*
\b(\w*)\s*:\s*(\b(?i:IF)\b)(.*)(\b(?i:THEN)\b))';
foldingStopMarker = '^\s*\b(?i:end\sprogram|end\sfunction|
end\ssubroutine|end\smodule|endif|enddo|end\sif|end\sdo)\b';
They seem to work quite allright except for the old-fashioned
do-loop of Fortran 77 which reads :
do 10 i=1,10
some code here
.......
10 continue
Note that the “continue” statement which ends the loop has the
label “10” which matches the loop one.
I've no idea how to implement folding markers for this syntax and
any help is appreciated :)
TIA
Hello!
I am using the Blogging->Markdown-Template. The preview looks all
right. But when I post to my wordpress blog, the Markup code isn't
converted to html.
Any idea?
greetings
Helge
I thought it might be interesting to see what themes people find best
for their various tasks. I do a lot of writing in Markdown and
Multimarkdown an like using Sunburst for that (my past favorite for
markdown was twilight). When I am writing html code, I prefer slate.
Robert
Howdy.
Currently textmate supports Descendant selectors and Grouping.
I would like to request support for Child selectors as well.
That would be like "string>source" instead of "string source"
<img style="<%= "stuff and #{ "things" }" %>" />
the word "things" is scoped as "meta.tag string source string source
string"
The Descendant selector "meta.tag string" affects both of the tag
attribute string and all of the embedded source strings.
But if it were a Child selector of "meta.tag>string", it would only
affect the tag attribute string.
thomas Aylott—subtleGradient