Hi all,
My C/C++ code doesn't always get parsed correctly, and I think I've
narrowed the problem down: the bundle doesn't seem to like it when my
parentheses are on separate lines. An example:
---------------------------
int a (int *p);
int
main (
void
)
{
int *p = 0; /* null pointer */
return a (p);
}
int
a (
int *p
)
{
int y = *p;
return y;
}
---------------------------
Is this intended? If not, how can I fix it?
Thanks!
John
1. It would be nice if the Regular Expression and Ignore Case
checkboxes were synchronized between Find and Find in Project (the
find and replace text are, so it seems these checkboxes should be as
well).
2. I was somewhat surprised to discover that regular expressions can
match across multiple lines. Or rather, I was surprised that TextMate
feeds the regex engine the entire buffer instead of a line at a time.
This is powerful, but it would also be nice to have a checkbox to
force TextMate to feed the regex line at a time.
j.
Hi all,
The subject has probably been discussed a number of times, but a
little googling didn't bring me a satisfying answer.
Is it possible to add smart folders capabilities to the project
drawer, like XCode does?
Sorry for my unability to find answers by myself! ;-)
Xavier Cambar
Just getting into TextMate (love it). I am trying to customize my own theme
(don't know a lot about RegEx yet). In the Ruby Bundle the language
settings have the following.
{ name = 'constant.other.symbol.ruby';
comment = 'symbols';
match =
'(?<!:)(:)(?>[a-zA-Z_]\w*(?>[?!]|=(?![>=]))?|===?|>[>=]?|<[<=]?|<=>|[%&`/\|]|\*\*?|=?~|[-+]@?|\[\]=?|@@?[a-zA-Z_]\w*)';
captures = { 1 = { name = 'punctuation.definition.constant.ruby';
}; };
},
So to me this appears customizing the syntax of symbols and math operators.
But when I Create a new Syntax element and set the scope to "
constant.other.symbol.ruby" the symbols and math operators don't change to
what I want. They stay like the default syntax "ruby.source" and i don't
know why because the symbol information has a more detailed scope.
Also does anyone have a language element that I can add to my language
definitions to allow me to chose syntax highlighting for function calls. Not
function definition, but actual functions being called upon such as:
old_inventory = inventory_from(ARGV[0])
With "inventory_from" being the thing I want to highlight?
Is there a way of permanently excluding build directories from a project? I have
a Python project that I develop using TextMate, from which I have to repeatedly
delete references to the build directory. After deleting references, of course,
the very next time I build the project, TextMate sees new files and adds them
back into the project.
Any help here most appreciated.
I'm just starting to try out TextMate, but a bunch of my commands are
failing for what looks like pathing issues.
A simple illustration of the problem is trying to do the 'Execute
Line Inserting Result' command on say, 'ls' for example. I get:
ls
/bin/bash: line 1: ls: command not found
Trying to do something like 'Filter Through Command...' yields man
many lines of '/bin/bash: line 1: dirname: command not found'
It looks like a path issue. I'm using .MacOSX/environment.plist to
set my environment path, but /bin, /usr/bin, et all are in there. So
I don't see why that would be an issue. The only other funky thing
I'm doing is parsing my environment.plist in .profile so I don't have
two sources of path information. Again, not sure why that would be
an issue, but it's at least related.
This is all on TextMate (trial) Version 1.5.5 (1368)
Any ideas?
Thanks in advance!
-Mat
For a project I'm working one I'm trying to figure out a way to tab
indent new lines of code between certain tags (mainly <head> and
<body>). Unfortunately I'm not as good at regular expressions as I
thought I was and can't figure it out.
Anyone out there able to lend a hand?
Thanks,
Mike Stickel
http://screenflicker.com/mike/ | http://gonecksgo.com
What are *exactly* the folding rules? I understand
folding keeps into account both the rules given in
the language definition and the text indentation,
but which one takes precedence? above all, is there a
way to completely overrule the indentation thing
and let folding use only the rules declared in
the language?
Thanks,
Piero
Just wondering how I can go about assigning a key combo for opening
project files in their own windows? (I like to keep the files I'm
actively editing in separate windows so I can easily compare back to
what I already have.) The help says to go through System
Preferences, but it wants the exact name of the menu item, which is
variable in this case (Open "foo" in New Window). Also, it seems you
can only open one file at a time this way, which is a bit of a drag.
-Ted
I'm new to htis and saw some previous postings on xcode. I don't know exactly
what xcode is or even why I need it at all. All I want to do is execute Ruby
code using the <command>R command, but I keep getting and xcodebuild error
saying there is no xcode project in my directory. xcodebuild shows up in my
terminal shell. I know I installed Xcode. How do I configure Textmate so that
shelling out to Ruby will execute correctly with Xcode?