I am hoping that this has been reported a work around available...
We often have the Textmate 'Find in Project' results become unresponsive to
mouse clicks. The only way to fix it is to restart Textmate. This also
occurs occasionally with the 'Go to Symbol' window as well.
Has anyone else had this happen. We have it on three different machines.
--
Steve Kickert
CEO
Riverock Technologies
www.riverocktech.com
952-232-5280 (direct)
612-965-1909 (mobile)
I finally figured out what was giving me the timeout error in Leopard,
when trying to do anything with the blogging bundle. It was an issue
related to my router (an actiontec GT704WG supplied by Verizon) that
only had problems with Leopard and not 10.4.
Here is the solution (I stumbled upon this when trying to troubleshoot
an issue connecting with adium as well):
1. Visit the router's configuration page and make note of the DNS
server IP's (there should be 2 or three of them). Each router will be
different on how you need to access the info, so use google if you
don't know.
2. Open network preferences, click on the connection you are using and
select advanced.
3. Click on the DNS tab and add the DNS entries that you got from your
router. (Your router's IP should already be listed there.)
4. You should now be able to connect.
http://forums.cocoaforge.com/viewtopic.php?t=16614&highlight=visit+routers+…
Once I followed those steps the problem was solved. What a relief! I
look forward to using the blogging bundle now!
Thanks again for all your help.
Tony
On Jan 18, 2008, at 3:51 AM, Tony Pelaez wrote:
> Though I have been successful at getting the blogging bundle to work
> in Tiger, when I try to run it in Leopard and fetch a post I get the
> following error:
>
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> 1.8/timeout.rb:54:in `open': execution expired (Timeout::Error)
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:564:in `connect'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:56:in `timeout'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:76:in `timeout'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:564:in `connect'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:557:in `do_start'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:546:in `start'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:1044:in `request'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:1001:in `post2'
> ... 9 levels...
> from /Library/Application Support/TextMate/Support/lib/ui.rb:17:in
> `dialog'
> from /Library/Application Support/TextMate/Support/lib/progress.rb:
> 42:in `call_with_progress'
> from /Library/Application Support/TextMate/Bundles/
> Blogging.tmbundle/Support/lib/blogging.rb:551:in `fetch'
> from /tmp/temp_textmate.b0oDWV:3
>
> has anyone been able to get the blogging bundle to work in Leopard?
>
> My System:
> OS X v. 10.5.1
> iMac Intel Core Duo
> ruby 1.8.6
> wordpress 2.3
>
> Any insight you can provide will be greatly appreciated.
>
> Tony
>
I've got a Ruby script here, and I'd like its output to act like RubyMate's
output - it should appear progressively as I call "puts" or "p" or whatever.
In fact, I'd like the output to piggyback on whatever RubyMate is doing.
But the script is not being run under RubyMate because it's part of a small
bundle I've written myself and the place we're starting is a .txt file
anyway (in other words, I've written a bundle that processes .txt files
using a Ruby script).
I'm betting there is some easy way to tell the bundle command that calls
this Ruby script to output like RubyMate. What would that be? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Still fighting on trying to get this to work. New problem now that I have
got all the bundles installed and now X11 and CarbonEL is the error message
in the subject
When I create a plot the quartz window opens but freezes with the spinning
beachball.
Hopefully someone can help me again.
Thanks,
Graham
Assigning Textmate as the external editor, it works
as expected for several projects. Double-clicking
on a file name within Xcode will open it in Textmate.
Then all of a sudden, files clicked in the Xcode
project menu no longer open --- instead
Xcode will pop up an error message saying
it cannot find the files and the "perhaps it has been
moved" thing.
If I then disable Textmate as the external editor,
everything will work fine again.
This does not happen if I assign BBE instead
of Textmate.
Perhaps I've missed something.
What am I doing wrong here?
-Shin
Hi there.
I'm twiddling here around with a RE problem and was wondering if you
could help me.
So here is the case. I want do do some tricky Syntax highlight matching,
and wanted to have the visual sidebar with the line numbers.
So in order to test this, I do inside TM Document window this:
(^[^\n]*\n)
This seems to work fine, and will select every single line in document
window.
But is I test the Javascript, which is:
linenum: {
exp: /(^[^\n]*\n)/,
replacement: "<span class=\"$0\"> 1</span>$1\n"
},
It doesn't do the replacement. So I also added a line-break in the
replacement-string, after the capture register, as you can see above,
but no honey.
As you can see, I want to replace every single in the document, with the
span instance above plus the Capture Register( Just like the Ruby code
does in TM Bundle ), which is the whole line, whether it is empty or not.
Any Ideas ?
regards, marios
thank you roger. you're a superstar. I knew it was something simple but was damned if I could figure it out. the language was on "DIFF" instead of "html"
many thanks
L-J
>What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
>Are
you
getting
proper
formatting
other
than
color?
>Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
____________________________________________________________
L-J Lacey
subtle as a fish
developing websites today for tomorrow
http://www.subtleasafish.com/
----- Original Message ----
From: "textmate-request(a)lists.macromates.com" <textmate-request(a)lists.macromates.com>
To: textmate(a)lists.macromates.com
Sent: Thursday, 21 February, 2008 11:00:05 PM
Subject: textmate Digest, Vol 41, Issue 23
Send
textmate
mailing
list
submissions
to
textmate(a)lists.macromates.com
To
subscribe
or
unsubscribe
via
the
World
Wide
Web,
visit
http://lists.macromates.com/mailman/listinfo/textmate
or,
via
email,
send
a
message
with
subject
or
body
'help'
to
textmate-request(a)lists.macromates.com
You
can
reach
the
person
managing
the
list
at
textmate-owner(a)lists.macromates.com
When
replying,
please
edit
your
Subject
line
so
it
is
more
specific
than
"Re:
Contents
of
textmate
digest..."
Today's
Topics:
1.
Re:
colours
in
textmate
have
disappeared
(L-J
Lacey)
2.
Re:
Re:
colours
in
textmate
have
disappeared
(Roger
Roelofs)
3.
TM
doesn't
have
trouble
with
RE,
but
I
have.
(marios)
4.
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Graham
Smith)
5.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(Daniel
Stockman)
6.
Re:
Working
with
pdfsync
in
latex
(Christian)
7.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(marios)
8.
Re:
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Paul
McCann)
9.
Re:
Octave/Matlab
bundle
(Thomas
Kjosmoen)
10.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(Sven
Axelsson)
11.
Re:
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Graham
Smith)
-----Inline Message Follows-----
Hi
Cristi.
I
did
as
advised
but
nothing
has
changed.
any
other
ideas?
thanks
______________________________________________________________________________________________________________
>first
thing
you
should
do
is
to
delete
plist
file
from
file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist
>>On
Feb
20,
2008
4:03
AM,
L-J
Lacey
<larmyia(a)yahoo.com>
wrote:
Hi!
I
have
searched
everywhere
I
can
to
find
the
solution
to
this,
so
excuse
me
if
it's
available
somewhere...I
can't
find
it!
What
I
think
happened
is
that
my
daughter
accidentally
pressed
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
I'm
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
thanks
L-J
__________________________________________________________
Sent
from
Yahoo!
Mail
-
a
smarter
inbox
http://uk.mail.yahoo.com
-----Inline Message Follows-----
L-J,
On
Feb
20,
2008,
at
7:31
AM,
L-J
Lacey
wrote:
>
---
8<
---
>
What
I
think
happened
is
that
my
daughter
accidentally
pressed
>
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
>
I'm
>
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
>
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
>
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
>
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
Are
you
getting
proper
formatting
other
than
color?
Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
-----Inline Message Follows-----
Hi
there.
I'm
twiddling
here
around
with
a
RE
problem
and
was
wondering
if
you
could
help
me.
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
So
in
order
to
test
this,
I
do
inside
TM
Document
window
this:
(^[^\n]*\n)
This
seems
to
work
fine,
and
will
select
every
single
line
in
document
window.
But
is
I
test
the
Javascript,
which
is:
linenum:
{
exp:
/(^[^\n]*\n)/,
replacement:
"<span
class=\"$0\">
1</span>$1\n"
},
It
doesn't
do
the
replacement.
So
I
also
added
a
line-break
in
the
replacement-string,
after
the
capture
register,
as
you
can
see
above,
but
no
honey.
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
Any
Ideas
?
regards,
marios
-----Inline Message Follows-----
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
you
want
to
do.
~
Daniel
-----Inline Message Follows-----
Am
19.02.2008
um
23:12
schrieb
Paul
McCann:
>
That
should
be
enough
to
give
you
forward
and
backward
synching:
>
shift-command-click
for
pdf=>code,
and
control-option-command-o
for
>
code
=>
pdf.
>
>
Cheers,
>
Paul
Thanks
Paul
for
the
clarification.
Now
it
works
fine
and
I
am
to
pace
around...
Christian
-----Inline Message Follows-----
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
>
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
>
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
>
>
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
>
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
>
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
>
>
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
>
you
want
to
do.
>
>
~
Daniel
>
Sorry
for
the
confusion.
Ok,
so
how
do
we
express
ourselves
better?
Lemmy
try
once
more.
The
question,
that
I
am
asking,
is
related
to
Regular
Expressions
and
Javascript.
(
So
this
is
not
a
Support
request
at
all
)
I
am
working
on
a
Plugin
for
Textpattern,
which
will
use
a
mootools
class,
to
append
the
corresponding
DOM
nodes
with
the
classed
span
tags.
This
will
all
happen
after
the
code
that
is
to
be
displayed
syntax
highlighted
is
already
encoded
to
entities.
That
works
all
so
far.
Now
in
order
to
get
the
same
effect
as
we
do
have
with
the
Make
HTML
document
from
source
with
Line
numbers
(Which
is
located
in
the
TextMate
Bundle
and
uses
Ruby
for
that),
yes
the
one
that
makes
the
span
tags
for
the
line
numbers,I
am
trying
to
figure
out,
why
the
same
Regular
expression,
that
I
mentioned
in
my
previous
post,
would
not
work,
when
used
as
above.
(
I
even
checked
the
Syntax
with
Flanagan's
Book,
also
tried
global
matching
but
no
luck
)
So
this
is
the
task:
Match
every
beginning
of
a
line,
including
the
first
line
of
the
document,
and
put
that
in
Capture
register
one,
then
match
every
line
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
Capture
Register
2.
This
works
from
within
TextMate,
but
not
in
Javascript.
I
hope,
this
explains
better
what
I
meant.
regards,
marios
-----Inline Message Follows-----
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
-----Inline Message Follows-----
{
name
=
'comment.line.number-sign.shell';
>
match
=
'(?<!\$)(#)(?!\{).*$\n?';
>
captures
=
{
1
=
{
name
=
>
'punctuation.definition.comment.matlab';
};
};
>
},
>
>
Might
Matlab's
bundle
be
patched
to
include
this,
or
should
an
>
independent
bundle
be
introduced
for
Octave?
>
>
Ben
>
>
>
______________________________________________________________________
>
For
new
threads
USE
THIS:
textmate(a)lists.macromates.com
>
(threading
gets
destroyed
and
the
universe
will
collapse
if
you
don't)
>
http://lists.macromates.com/mailman/listinfo/textmate
>
>
Hi
Ben,
Trying
again,
since
Mailman
bounced
my
message.
I'm
working
on
a
Matlab
bundle,
and
stumbled
upon
your
message
here.
Well,
I
just
added
Octave
support,
so
I'd
appreciate
if
you'd
check
it
out
and
give
me
some
feedback.
When
the
bundle
is
good
enough
I'll
submit
it
to
Allan.
You
can
find
it
here:
https://projects.ux.uis.no/projects/show/textmate
Hope
it's
useful.
--Thomas
--
View
this
message
in
context:
http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html
Sent
from
the
textmate
users
mailing
list
archive
at
Nabble.com.
-----Inline Message Follows-----
On
20/02/2008,
marios
<tmtxpstuff(a)consking.com>
wrote:
>
So
this
is
the
task:
>
>
Match
every
beginning
of
a
line,
including
the
first
line
of
the
>
document,
and
put
that
in
Capture
register
one,
then
match
every
line
>
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
>
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
>
Capture
Register
2.
>
>
This
works
from
within
TextMate,
but
not
in
Javascript.
OK,
so
this
really
hasn't
anything
to
do
with
TextMate.
Perhaps
Javascript
won't
let
you
match
newline
characters?
Try
this
regular
expression
instead,
it
may
work
better:
^(.*)$
--
Sven
Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
-----Inline Message Follows-----
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
_______________________________________________
textmate
mailing
list
textmate(a)lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmateHi
Cristi.
I
did
as
advised
but
nothing
has
changed.
any
other
ideas?
thanks
______________________________________________________________________________________________________________
>first
thing
you
should
do
is
to
delete
plist
file
from
file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist
>>On
Feb
20,
2008
4:03
AM,
L-J
Lacey
<larmyia(a)yahoo.com>
wrote:
Hi!
I
have
searched
everywhere
I
can
to
find
the
solution
to
this,
so
excuse
me
if
it's
available
somewhere...I
can't
find
it!
What
I
think
happened
is
that
my
daughter
accidentally
pressed
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
I'm
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
thanks
L-J
__________________________________________________________
Sent
from
Yahoo!
Mail
-
a
smarter
inbox
http://uk.mail.yahoo.com
L-J,
On
Feb
20,
2008,
at
7:31
AM,
L-J
Lacey
wrote:
>
---
8<
---
>
What
I
think
happened
is
that
my
daughter
accidentally
pressed
>
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
>
I'm
>
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
>
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
>
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
>
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
Are
you
getting
proper
formatting
other
than
color?
Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
Hi
there.
I'm
twiddling
here
around
with
a
RE
problem
and
was
wondering
if
you
could
help
me.
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
So
in
order
to
test
this,
I
do
inside
TM
Document
window
this:
(^[^\n]*\n)
This
seems
to
work
fine,
and
will
select
every
single
line
in
document
window.
But
is
I
test
the
Javascript,
which
is:
linenum:
{
exp:
/(^[^\n]*\n)/,
replacement:
"<span
class=\"$0\">
1</span>$1\n"
},
It
doesn't
do
the
replacement.
So
I
also
added
a
line-break
in
the
replacement-string,
after
the
capture
register,
as
you
can
see
above,
but
no
honey.
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
Any
Ideas
?
regards,
marios
-----Inline Attachment Follows-----
I wonder if someone with a lot of patience can help me with getting the basics of this working. I have downloaded the the three files that Hans-Jorg uploade to this forum, as they don't appear to be in the repository yet.
Of the three files only one looked like the other bundle files and I copied it into the same directory where the old RBundle was located. I now have a new set of commands and updated the help index.
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
I am also being extremely dim in getting things to work.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
in the runtime window. However, what I get is
> test
Error: object "test" not found
Execution halted
If I open R and have the RConsole open, then "send selection to r.app" works as expected, but as that has a rather clumsy shortcut key, I assume the shorter command R option is the "normal"way of working
I accept my unfamiliarity with TextMate is probably the problem, but I would appreciate someone pointing out the obvious to me.
Many thanks,
Graham
>
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
>
matching,
>
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
>
[...]
>
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
>
the
>
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
>
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
>
not.
Actually,
it's
really
hard
to
understand
what
you're
aiming
at,
here.
"Just
like
the
Ruby
code
does
in
TM
Bundle"...
uh,
which
one?
What
command/snippet
are
you
referring
to?
I
see
several
ways
of
adding
line
numbers
to
a
document
(bundle
name):
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
you
want
to
do.
~
Daniel
Am
19.02.2008
um
23:12
schrieb
Paul
McCann:
>
That
should
be
enough
to
give
you
forward
and
backward
synching:
>
shift-command-click
for
pdf=>code,
and
control-option-command-o
for
>
code
=>
pdf.
>
>
Cheers,
>
Paul
Thanks
Paul
for
the
clarification.
Now
it
works
fine
and
I
am
to
pace
around...
Christian
Daniel
Stockman
wrote:
>>
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
>>
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
>>
[...]
>>
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
>>
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
>>
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
>
>
Actually,
it's
really
hard
to
understand
what
you're
aiming
at,
here.
>
"Just
like
the
Ruby
code
does
in
TM
Bundle"...
uh,
which
one?
What
>
command/snippet
are
you
referring
to?
>
>
I
see
several
ways
of
adding
line
numbers
to
a
document
(bundle
name):
>
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
>
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
>
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
>
>
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
>
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
>
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
>
>
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
>
you
want
to
do.
>
>
~
Daniel
>
Sorry
for
the
confusion.
Ok,
so
how
do
we
express
ourselves
better?
Lemmy
try
once
more.
The
question,
that
I
am
asking,
is
related
to
Regular
Expressions
and
Javascript.
(
So
this
is
not
a
Support
request
at
all
)
I
am
working
on
a
Plugin
for
Textpattern,
which
will
use
a
mootools
class,
to
append
the
corresponding
DOM
nodes
with
the
classed
span
tags.
This
will
all
happen
after
the
code
that
is
to
be
displayed
syntax
highlighted
is
already
encoded
to
entities.
That
works
all
so
far.
Now
in
order
to
get
the
same
effect
as
we
do
have
with
the
Make
HTML
document
from
source
with
Line
numbers
(Which
is
located
in
the
TextMate
Bundle
and
uses
Ruby
for
that),
yes
the
one
that
makes
the
span
tags
for
the
line
numbers,I
am
trying
to
figure
out,
why
the
same
Regular
expression,
that
I
mentioned
in
my
previous
post,
would
not
work,
when
used
as
above.
(
I
even
checked
the
Syntax
with
Flanagan's
Book,
also
tried
global
matching
but
no
luck
)
So
this
is
the
task:
Match
every
beginning
of
a
line,
including
the
first
line
of
the
document,
and
put
that
in
Capture
register
one,
then
match
every
line
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
Capture
Register
2.
This
works
from
within
TextMate,
but
not
in
Javascript.
I
hope,
this
explains
better
what
I
meant.
regards,
marios
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
Ben
Abbott
wrote:
>
>
I'm
interested
a
bundle
that
supports
Octave's
syntax
which
is
nearly
>
same
as
Matlab's
...
plus
a
bit
more.
>
>
Additional
Octave
"features"
are
listed
at
the
link
below
>
>
http://www.gnu.org/software/octave/FAQ.html#Octave-Features
>
>
The
additional
syntax
includes
>
*
Comments
with
the
number-sign,
"#"
>
*
Strings
delimitted
by
double
quotes,
ex:
"string"
>
*
Line
continuation
by
backslash.
>
>
The
Matlab
bundle
apparently
respects
single
and
double
quotes,
but
is
>
agnostic
to
line
continuation.
Thus,
the
only
additional
thing
needed
for
>
Octave
is
support
of
the
number-sign
for
comments.
>
>
I
cut
the
text
below
from
the
shell
script
bundle
and
pasted
it
into
the
>
Matlab
bundle,
and
it
appears
to
work
properly!
>
>
{
name
=
'comment.line.number-sign.shell';
>
match
=
'(?<!\$)(#)(?!\{).*$\n?';
>
captures
=
{
1
=
{
name
=
>
'punctuation.definition.comment.matlab';
};
};
>
},
>
>
Might
Matlab's
bundle
be
patched
to
include
this,
or
should
an
>
independent
bundle
be
introduced
for
Octave?
>
>
Ben
>
>
>
______________________________________________________________________
>
For
new
threads
USE
THIS:
textmate(a)lists.macromates.com
>
(threading
gets
destroyed
and
the
universe
will
collapse
if
you
don't)
>
http://lists.macromates.com/mailman/listinfo/textmate
>
>
Hi
Ben,
Trying
again,
since
Mailman
bounced
my
message.
I'm
working
on
a
Matlab
bundle,
and
stumbled
upon
your
message
here.
Well,
I
just
added
Octave
support,
so
I'd
appreciate
if
you'd
check
it
out
and
give
me
some
feedback.
When
the
bundle
is
good
enough
I'll
submit
it
to
Allan.
You
can
find
it
here:
https://projects.ux.uis.no/projects/show/textmate
Hope
it's
useful.
--Thomas
--
View
this
message
in
context:
http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html
Sent
from
the
textmate
users
mailing
list
archive
at
Nabble.com.
On
20/02/2008,
marios
<tmtxpstuff(a)consking.com>
wrote:
>
So
this
is
the
task:
>
>
Match
every
beginning
of
a
line,
including
the
first
line
of
the
>
document,
and
put
that
in
Capture
register
one,
then
match
every
line
>
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
>
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
>
Capture
Register
2.
>
>
This
works
from
within
TextMate,
but
not
in
Javascript.
OK,
so
this
really
hasn't
anything
to
do
with
TextMate.
Perhaps
Javascript
won't
let
you
match
newline
characters?
Try
this
regular
expression
instead,
it
may
work
better:
^(.*)$
--
Sven
Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
-----Inline Attachment Follows-----
Paul,
Thanks, that would all seems to make sense. And yes it does seem a nice environment, which played a small part in my decision to buy a Mac.
Graham
On 20/02/2008, Paul McCann <paul.mccann(a)adelaide.edu.au> wrote:
Hi Graham,
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
___________________________________________________________
Rise to the challenge for Sport Relief with Yahoo! For Good
http://uk.promotions.yahoo.com/forgood/
I wonder if someone with a lot of patience can help me with getting the
basics of this working. I have downloaded the the three files that Hans-Jorg
uploade to this forum, as they don't appear to be in the repository yet.
Of the three files only one looked like the other bundle files and I copied
it into the same directory where the old RBundle was located. I now have a
new set of commands and updated the help index.
However, I am not at all sure what to do with the other two files (Rdaemon
and R,app) as these don't unzip to bundle files.
I am also being extremely dim in getting things to work.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R
runtime opens and the command is executed and this line appears in the
runtime.
I would now expect to type "test" in Textmate, hit command R again and get
something like:
> test
[1] 3 4 6 7 8 9 10
in the runtime window. However, what I get is
> test
Error: object "test" not found
Execution halted
If I open R and have the RConsole open, then "send selection to r.app" works
as expected, but as that has a rather clumsy shortcut key, I assume the
shorter command R option is the "normal"way of working
I accept my unfamiliarity with TextMate is probably the problem, but I would
appreciate someone pointing out the obvious to me.
Many thanks,
Graham
I'm interested a bundle that supports Octave's syntax which is nearly
same as Matlab's ... plus a bit more.
Additional Octave "features" are listed at the link below
http://www.gnu.org/software/octave/FAQ.html#Octave-Features
The additional syntax includes
* Comments with the number-sign, "#"
* Strings delimitted by double quotes, ex: "string"
* Line continuation by backslash.
The Matlab bundle apparently respects single and double quotes, but is
agnostic to line continuation. Thus, the only additional thing needed for
Octave is support of the number-sign for comments.
I cut the text below from the shell script bundle and pasted it into the
Matlab bundle, and it appears to work properly!
{ name = 'comment.line.number-sign.shell';
match = '(?<!\$)(#)(?!\{).*$\n?';
captures = { 1 = { name = 'punctuation.definition.comment.matlab'; }; };
},
Might Matlab's bundle be patched to include this, or should an
independent bundle be introduced for Octave?
Ben
Hi Folks,
I am pretty new to textmate and I already love the way how to typeset
only with textmate and to preview the PDF.
I now tried pdfsync and can't get it to work.
I have my preambel and include all my chapters with input. After
typesetting, I highlighted a word with an included file and used "Show
in PDF-Viewer (pdfsync)", but nothing happens. How ould I get this to
work, so that I can jump from the code to the pdf and vice versa?
Thanks in advance
Christian