[TxMt] Re: colours in textmate have disappeared
L-J Lacey
larmyia at yahoo.com
Thu Feb 21 21:40:05 UTC 2008
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 at gmail.com
____________________________________________________________
L-J Lacey
subtle as a fish
developing websites today for tomorrow
http://www.subtleasafish.com/
----- Original Message ----
From: "textmate-request at lists.macromates.com" <textmate-request at lists.macromates.com>
To: textmate at 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 at 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 at lists.macromates.com
You
can
reach
the
person
managing
the
list
at
textmate-owner at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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/
More information about the textmate
mailing list