I'm using the current (as of a few minutes ago) Subversion repository
for TextMate bundles, and I'm having a problem with the LaTeX mode's
highlighting. The problem is with the "lstlisting" environment (and
possibly others).
With the default Mac Classic theme, this environment is supposed to
have a light blue background. However, while writing a recent paper,
the highlighting often did not work the way it's supposed to. To
demonstrate the problem, I've attached three LaTeX files. The
rightway.tex file shows how the highlighting is supposed to be; the
wrongway1.tex and wrongway2.tex files show incorrect highlighting. Is
there a simple fix for these problems?
Thanks,
Trevor
P.S. Although the rightway.tex file highlights the environment in
blue as it should, it also changes the word "is" to bold. Why does it
do this?
Mike,
I'm trying to use wait, unwait, done & delegate actions, yet none of
them work. I type the shortcut letter such as 'w' and then press tab,
this merely replaces my task with a blank line.
Actually, I just tested manually choosing the action from the bundle
menu and it seems that the shortcuts work fine, it's the actions that
are not working. Choosing the action from the menu does the same thing.
Any info would be helpful.
Thanks
Mike
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm using the (newest) PHP-Package and I would like to color normal
comments other then phpdoc comments.
So I changed the PHP Language a bit to perform this. I replace the
normal comment.block.php with this one:
{ name = 'comment.block.php.phpdoc';
begin = '/\*\*';
end = '\*/';
patterns = (
{ name = 'keyword.other.phpdoc.php';
match = '\@(a(ccess|uthor)|c(ategory|
opyright)|global|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|
ubpackage)|t(hrows|odo)|v(ar|ersion))\b';
}
);
},
{ name = 'comment.block.php';
begin = '/\*';
end = '\*/';
},
So I have an own scope for the phpdoc comment. I also added @license
as phpdoc keyword. It would be nice if you could add this changes to
the official PHP-Package.
I also have another question: How can I activate the spell-check in
(PHP)comments. I tried to use a Preference Item and added
{ spellChecking = 1; } to it and set the scope to "comment" but it
didn't worked.
Do you have any ideas?
Thanks in advance,
Simon Ruderich
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFOQF2YRX4BO+zMikRCn6YAKDUCbqHUHmgkX8VMBag367nBI1wVgCfYqUF
sMHhifE1Hs9wR4Np6QP3Bhw=
=nHGU
-----END PGP SIGNATURE-----
Hi everybody.
As some of you may have figured out, I work a lot in HTML and CSS and
I have a fetish for descriptive titles on links. I've been rewriting
the wrap selection as link command and have it all worked out to grab
the title of the link in the clipboard if it starts with http(s). I
can't get it to validate the link, though.
Here's the text of the command:
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require 'open-uri'
link = "http://site.com"
title = #{ENV['TM_SELECTED_TEXT']}
s = IO.popen('pbpaste', 'r+').read
if s.match(/(http(s?):\/\/)/) then
TextMate.call_with_progress(:title => "Opening Link", :message =>
"Retrieving Title for #{s}") do
begin
fp = open(s)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a
[1].strip
link = s
rescue
title = "site unreachable"
end
end
end
print %{<a href="${1:#{link}}" title="${2:#{title}}" >
$TM_SELECTED_TEXT</a>}
I've tried all kinds of overly complex methods that all yield the
same results when the link is bogus:
/usr/lib/ruby/1.8/timeout.rb:42:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileconnect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileopen'
from /usr/lib/ruby/1.8/net/http.rb:430:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestart'
from /usr/lib/ruby/1.8/net/http.rb:324:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileproxy_open'
from /usr/lib/ruby/1.8/open-uri.rb:525:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of filepopen'
from /Users/brett/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in
This is what I get (and should get, I think) when I run it from a
Ruby dialog:
<a href="${1:http://site.com}" title="${2:site unreachable}" >
$TM_SELECTED_TEXT</a>
It works great when the site in the clipboard is valid. Any
suggestions would be appreciated.
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
I'm happily using the GTDalt bundle. Nearly everything is working
perfectly. I'm seeing one strange issue:
When I run synchronize with iCal, I get a calendar per context in
iCal as Haris describes, but for all contexts, no actions are
exported. There are no errors reported and the bundle works
flawlessly otherwise.
I haven't seen this particular issue come up here and its not
mentioned on Haris' page:
<http://skiadas.dcostanet.net/afterthought/2006/07/17/gtdalt-and-ical/>
Any ideas ?
[Newest Bundle (AFAIAW); Textmate v.1292; iCal v.1058]
wtia,
mark.
A typical problem is the bold command in the Latex bundle. Instead of
inserting "textbf{}", it inserts "env: ruby -s: No such file or
directory". The bold command seems to work if I replace the first line
in toggle_style.rb with "#!/usr/bin/ruby -s". (I have created a link
so that /usr/bin/ruby links to Ruby 1.8 installed from Fink.)
Will I break things if I change the first line of the various ruby
scripts from "#!/usr/bin/env ruby -s" to "#!/usr/bin/ruby -s"?
Thanks for your help,
Darryl
> On Sep 17, 2006, at 1:09 AM, Darryl Morrell wrote:
>
>> I recently acquired TextMate 1.5.3, and am overall very pleased with
>> it. However, I am running OS X 10.3.9, and several bundles do not
>> work correctly. In particular, several commands in the Latex and
>> TODO bundles do not work. Some of the problems were fixed by
>> installing Ruby 1.8 from Fink, but many others remain. Any help
>> would be appreciated.
>
> A lot of bundle commands require Ruby 1.8, and as far as I know that's
> the only problem with 10.3.9, so if there are still commands you can't
> run, then you should probably tell us what they are and what error
> messages you get.
>
>> Darryl Morrell
>>
>
> Haris
Hi all,
I was wondering if anyone has any suggestions as to how one might use
Textmate to interface with Matlab? I can have a command execute a given
.m file, but Matlab is a much heavier process to load than perl is from
the command line, so that becomes a very unattractive option.
Ideally I'd like to have Matlab running in a terminal (the java
interface is just too slow for me), and edit with Textmate in such a
way that commands could reach the already loaded session.
cheers,
-don
==========================
Don Kalar
Graduate Student,
Cognitive Neuroscience
UCLA Department of Psychology
1285 Franz Hall, Box 951563
Los Angeles, CA
90095-1563
==========================
> In general, I'm surprised that there hasn't been more progress on the
> python bundle, given how many people claim to use it.[^1] I suppose I'm
> as guilty for this as anyone.
roads of life brought me away from Milan where I used to live (now I'm in
Bozen) and away from a working internet connection, so my ability to give back
to the community has been hindered quite a lot. I hope I'll be back somewhen
next month, if Italian telcos help me.
Is it true that if I make changes to any of my bundles, they will no longer
be updated by TextMate updates? Is it possible to make a separate bundle
that just encompases my changes and have them apply to another bundle? If
I've missed this in the manual, can you point me at where I can find it?
-dave