Hi there, I've just downloaded Textmate and am really enjoying using
it though there is one basic feature that I can't seem to find:
-how do I auto-format my code?
I program in Actionscript and am used to pressing the 'Auto Format'
button in the Flash Actions panel to tidy up my formatting.
I've looked at the manual and through the documentation but I can't
seem to figure this out!
Any help much appreciated and if anyone has any other specific tips
for AS users using Textmate please let me know :)
Thanks,
Ali
I'm currently tweaking the language plist of the ActionScript 3
bundle (this is not an ActionScript 3 question), and I'm having
trouble with it.
Like most other languages, there are hundreds of supportive classes,
functions, properties and constants in the AS3 language that deserve
a special syntax coloration. The default language definition of the
AS3 bundle currently has lists of these words, hundreds of words
long. I've added a few hundred here and there, and now only some of
them work.
The specific part of my language definition that's being troublesome
somewhat resembles this:
{ name = 'support.class.actionscript.3';
match = '([\w\.]|\b)(Class1|Class2|Class3| ... |ClassN)\b';
},
-where N is a very, very large number. About 350. And my problem is,
specifically, that some of the words in the match line will behave as
if their scope is support.class.actionscript.3, and some of them will
behave as if they have no scope.
I'd really like this to work. Are there technical limits to the
number of words to specify in a match statement? Does anyone have any
suggestions?
Thanks very much,
-Jeremy Sachs
For some reason the "Typeset & View" dialog presents garbled text when compiling
LaTeX documents:
http://trichech.us/images/TypesetViewBug-20071019-103513.jpg
This occurs repeatedly. Anyone else get this? I'm running Version 1.5.6 (1414).
cf
Does anyone have a simple example of coding and running an Objective-C unit
test in
TextMate?
It appears that you can use XCode to add OCUnit tests to your project. I
thought I saw that you could then run unit tests from TextMate (via the
XCode bundle). But can you do it without using XCode at all?
I want to write a non-gui library, so I don't need XCode/IB. How do you
write a
simple file that includes the right headers and defines an OCUnit test? Then
can that be called from TextMate?
Thanks
Hi,
I've noticed a bug in the function detection of the C language Bundle.
A function is not properly recognized when the arguments are spread
over several lines. This causes the syntax highlighting to be broken
and the function will not appear in the 'Jump to function' popup list.
I've attached a patch to the C syntax file which corrected the problem
for me. I haven't noticed any side-effects so far but I don't know if
it's really the best solution.
Allan, I would be glad if you could incorporate a fix to this issue in
an upcoming release.
Thanks,
Angelo
I've come to depend on PyCheckMate (which I run via "Validate Syntax"
in the Python bundle). But "all of a sudden" it has started doing a
"Syntax check only" (I don't know exactly when this started), which is
much less useful. (The syntax check misses a number of errors that
the previous check would catch.)
The window that opens when I do a validate shows "PyCheckMate r7337".
Did it fall back to syntax check only when I last updated TextMate?
How do I go back to the full validation?
--
Daryl Spitzer
Hello everyone,
On my french AZERTY keyboard, some keys are dead by default. This
includes the ‘^’ key and is necessary for circumflexes such as î or
ê. However, when in math mode, circumflexes are seldom needed; in
math mode, I'd rather have the ‘^’ not dead, in order to easily type
exponents. Worse, in fact TM behaves strangely when one tries to type
a character which can't be circumflexed, it doesn't display anything:
when typing ‘^{’ on my keyboard, nothing appears.
So I though the easiest solution would be to override the ‘^’ key
with a snippet in scope string.other.math.latex, but the shortcut
doesn't seems to work. Any other solution?
Oh, and while I'm at it. I found it really useful to bound a ~
snippet to alt-space - ~ is a dead key too on my keyboard. I was
wondering if it was worth including this in the LaTeX bundle. And the
X ~> \Xi command completion is lacking in my version of the package.
Why is that?
As always, thanks for your help,
Édouard
Hey guys,
I am right now trying the out TextMate and it seems pretty awesome.
I do have a Problem with using my old pything files with TextMate. They are
all indented by whitespaces and not by tabs. So when I add a new line with
TextMate, the python script won't run anymore, since TextMate indents by
using tabs.
So I would either have to convert my python scripts to use tabs or tell
TextMate to use whitespaces.
How would I achieve one of the above?
Regards,
Samy
--
View this message in context: http://www.nabble.com/Question-about-python-indentation-tf4646652.html#a132…
Sent from the textmate users mailing list archive at Nabble.com.
Some frequent discussion topics on this list are:
1. How do I use TextMate's cool project features when my directory is
on some other machine? Or…
2. I've created a TextMate project out of a directory on some other
machine, but now Subversion is broken. Or the extremely common…
3. I've created a TextMate project out of a directory on some other
machine, but every time I switch to TextMate, there's this huge delay.
I've had all of these problems myself and have developed a bundle to
work around them.
<http://kendra.oit.gatech.edu/remote_project_bundle.zip>
The intro in the bundle's documentation sums it up nicely:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
## About This Bundle
### The Problem
You want to work with files in a TextMate project on the local
filesystem (for speed, Subversion compatibility, and other reasons),
but the files you're working on are useless unless they're on some
remote machine. This is most common with web based projects where the
code only works on a sever that has been configured in a particular way.
### Who This Bundle Is For
This bundle is meant to support a workflow where all (or almost all)
changes are made locally using TextMate, while all (or almost all)
viewing/running/testing of those changes will be done on a remote
machine (such as a web server).
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
For more details, run the bundle's Help command. If anyone uses this,
send suggestions to me or to the list. I'd like to go through a
couple of feedback and improvement cycles before submitting it for
consideration as an "official" bundle. Thanks.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i'm using mySQL Version 14.12 Distrib 5.0.41, for apple-darwin8.5.1
(i686).
I've configured my Setup to use the SQL Bundle. When I select a Query
(working
in Shell) and press Ctrl-Shift-Q, I get the folling Errors:
- -- snip --
/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/
bin/db_browser_lib.rb:5:in `require': No such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/
keychain (LoadError) from /Library/Application Support/TextMate/
Bundles/SQL.tmbundle/Support/bin/db_browser_lib.rb:5 from /Library/
Application Support/TextMate/Bundles/SQL.tmbundle/Support/bin/
db_browser.rb:7:in `require' from /Library/Application Support/
TextMate/Bundles/SQL.tmbundle/Support/bin/db_browser.rb:7
- -- snap --
As I do not code in Ruby, I do not exactly know where the Problem is.
Same Query in Project worked in a prior Version of TextMate.
Maybe there ist someone who can give me a Hint to fix this. :o)
Thanks in Advance from Aix-la-Chapelle,
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFHFnDrf47P97gjAUwRAr2uAKCNpjR+r0y5SHzr1aKXexTJbfHqTgCgxnOG
SxInY58C3Vr+EDNlT+WntU4=
=PZOZ
-----END PGP SIGNATURE-----