Hi,
Sorry for this basic question, but I'm a textmate newbie and I just
couldn't find a way to do this. I was editing a HTML file and then I
accidentally pressed some key combination and now the syntax
highlighting is messed up. I tried finding a way of going back to HTML
highlighting mode to no avail. How do I do this?
Thanks,
Yariv
Hi there,
One thing I miss from my XEmacs days, was the
“etags” command which is very useful when you
have a directory full of Fortran files…
If, in a fortran file, you had
call foobar(blah blah)
It would automatically open the file in which
the function foobar was defined.
So I made a shell script which mimic that.
http://guerom00.free.fr/clutter/Fortran_Tags.sh
Just create a new command which reads :
Wherever_you_put_the_script/Fortran_Tags.sh "$TM_DIRECTORY"\\
"$TM_CURRENT_WORD" &>/dev/null &
It will create a tags file named “.tags” in the current
directory.
I know it's rather ugly and not perfect but seems
to work OK… Hopefully one person or two will
find this usefull :-D
Hi there,
I made myself a simple script to compile Fortran
programs using the “make” command. I wanted the
compilation window to automatically close on
successful compilation, so this script basically
reads :
htmlHeader "Compiling current programs using Make"
echo "<h1>Starting Fortran Compile</h1>"
echo
cd "$TM_DIRECTORY"
make|pre
status=$?
echo "status = "${status}
if [[ "${status}" -ne "0" ]]; then
echo "<h1>Compilation Failed</h1>"
else
echo "<h1>Compilation Successful</h1>"
# closeWindow
fi
htmlFooter
The problem is that, even when the compilation
fails, the $status is equal to 0…
http://img220.imageshack.us/img220/8341/image1po1.jpg
What did I do wrong ? How do I fix this ?
Thanks in advance.
PS : I don't know if I'm the only one, but using Safari
for the RSS feed for this mailing list, I receive EVERY
message twice… Rather annoying…
>> [...]
>> make|pre
>> [...]
>> The problem is that, even when the compilation
>> fails, the $status is equal to 0
>>
>
> The problem is that when you do ‘foo|bar’ then the result of the
> entire command is that of the last command in the chain.
You can use the bash PIPESTATUS array.
j.
I've come across this a couple of times now: a file which looks fine
in TextEdit or BBEdit loses its line breaks when opened in TextMate.
Looking at the problem file in HexEdit, the following Hex is being
used for linebreaks: E2 80 A8, which appears to be a UTF-8 linebreak,
based on some preliminary googling. Saving a short UTF-8 file in TM,
the linebreaks are: 0A (\n).
Would it be possible for TM to support this format of linebreaks, at
least on read?
jb
I work with a lot of code which has 'dropped' braces, such as
if ()
{
}
else
{
}
I personally prefer the K&R style, such as
if () {
} else {
}
I made this new macro to make conversions easier - it simply keeps a
space before/after the brace when joining lines - otherwise joining
the lines would result in
if (){
}else{
}
I added it as a second macro with a scope of just "source", so text
files won't be affected.
Thoughts?
Cheers,
Ciarán
Hi,
I had written about this before, but I am still seeing this.
If I have a mounted volume (Either AFP, or in the latest case NFS),
and I've opened some files from that volume (and have subsequently
closed them), when I go to dismount that
volume, I get an error in the Finder stating that the volume is in use.
It always end up being Textmate. Using the terminal, I can see:
john$ lsof | grep TextMate
TextMate 376 john cwd VDIR 26,9 4096 343647
/Volumes/10.1.1.104/public_html
(The volume that is mounted is just /Volumes/10.1.1.104/, public_html
is the directory I happened to open a file from.)
The only way around this is to quit TextMate. Any ideas why TM in
holding onto the volume like that?
Thanks,
jt
Hi Allan,
thanks for your help!
this is a follow up to a newsgroup post from yesterday. I am having
problems with the blogging bundle.
I turned the xmlrpc logging on - see below.
On 16-Oct-06, at 11:58 PM, textmate-request(a)lists.macromates.com wrote:
> On the server, you need to create a writable (by your apache user)
> directory for the uploads and set that in the WordPress preferences.
"the uploads" meaning for example jpg files that I would upload with
a blog post?
I can create a directory on my server (that is not my own apache
server, but a hosted one) and I can probably find the corresponding
setting in wordpress... but I guess the following issue should be
resolved first.
>
> Is this a 100% untampered WordPress 2.0 install?
>
> In your install of WP is a xmlrpc.php file, set $xmlrpc_logging =
> 1; in that file and check what the XML-RPC log says when you post,
> i.e. if TM provides the post in two chunks. If it does, it is your
> WP install which needs fixing.
The xmlrpc.log looks like this. With "two chunks" - do you mean the
part highlighted in red?
2006-10-17 23:05:49 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.editPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></
param><param><value><struct><member><name>mt_allow_pings</
name><value><string>open</string></value></
member><member><name>mt_allow_comments</name><value><string>open</
string></value></member><member><name>title</
name><value><string>Blogging via TM</string></value></
member><member><name>categories</
name><value><array><data><value><string>water in the media</string></
value></data></array></value></member><member><name>description</
name><value><string>This is a blog entry written from TM
Holladrihia</string></value></member></struct></value></
param><param><value><boolean>1</boolean></value></param></params></
methodCall>
2006-10-17 23:05:49 Output: (MW) Edited ! ID: 50
2006-10-17 23:05:50 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.getPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></param></
params></methodCall>
2006-10-17 23:06:38 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.editPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></
param><param><value><struct><member><name>mt_allow_pings</
name><value><string>open</string></value></
member><member><name>mt_allow_comments</name><value><string>open</
string></value></member><member><name>title</
name><value><string>Blogging via TM</string></value></
member><member><name>categories</
name><value><array><data><value><string>water in the media</string></
value></data></array></value></member><member><name>description</
name><value><string>This is a blog entry written from TM
Holladrihia
</string></value></member><member><name>mt_text_more</
name><value><string>
This now should be below the cut! It better damn be!</string></
value></member></struct></value></param><param><value><boolean>1</
boolean></value></param></params></methodCall>
2006-10-17 23:06:38 Output: (MW) Edited ! ID: 50
Thanks again,
Claus
Hello all,
I am just installing TextMate on my new iMac and I face la little problem : by default, spell checking is activated. My question : how can I disable spell checking ?
Thanks
G
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com