Couple of questions regarding syntaxes:
I'm working on modifying the HTML syntax to support JSP. I've created
the following definition for comments; JSP and HTML comments are
similar. JSP comments look like <%-- comment --%>. I can use a simple
regexp to search for <!-- or <%--, but is there a way to be smarter
about how the comment ends? I'd like to make sure an illegal JSP
comment gets highlighted as such:
WRONG:
<%-- -->
... or maybe ...
<%-- --> --%>
I've currently got the (not quite smart enough) pattern:
{
name = "Comments";
begin = "<[%!]--";
end = "--%?>";
foregroundColor = "red";
},
How is the "include" keyword supposed to work in a pattern? I've tried
this:
name = "Embedded Java";
backgroundColor = "#E5E5E5";
begin = "<%";
include = "Java";
end = "%>";
... but that only highlights the background of the excursion, not the
text within. I've created a Java bundle with "Java" defined in
Syntaxes/Java.plist.
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
I do not know if this has been mentioned before, but the undo/redo
functionality needs improvements. What bothers me is that the undo
functionality will "undo" stuff character-by-character, and not by
block. I want block undos. Ideally, I would like to have more of a
VIM-like undo functionality.
You may wonder what would be defined as a "block undo"? One definition
would be: any time when I type in text (or remote text with the
backspace/delete) would be one block. When I move the mouse, or use the
arrow keys, or use PGUP,PGDOWN, etc. the undo block would end.
Nick
Interarchy supports ediiting files over sftp. It would make me überhappy is
TestMate would support this feature. I asked the Interarchy developer what
details you would need to know to make this work. He replied with the links
to the info below.
I know you intend to support editing files over sftp with TextMate in
version 1.1, but I like Interarchy and adding compatability to work with
Interarchy looks pretty simple. So pretty please with sugar on top, add
this feature. :-D Thanks,
Simon
------ Forwarded Message
From: Peter N Lewis <peter(a)stairways.com.au>
Date: Thu, 7 Oct 2004 10:06:08 +0800
To: Simon Dorfman <Simon(a)SimonDorfman.com>
Subject: Re: Edit with... TextMate
>I want to ask the developer of a new text editor (TextMate macromates.com)
>to support your "Edit with..." feature. What does he need to know to make
>it jive with Interarchy?
The details are at:
http://www.merzwaren.com/external_editor.html
and Bare Bones' original specification is at:
http://www.barebones.com/support/developer/odbsuite.html
If they drop me a line when it is implemented we'll be happy to add
TexMate to our list of possible editors.
Enjoy,
Peter.
--
<http://www.stairways.com/> <http://download.stairways.com/>
------ End of Forwarded Message
Hi all,
I just downloaded the PHP & Smarty syntax bundle, and found that it too
was based on a dark background. Can someone please explain this
seeming 'obsession' with dark backgrounds when 99% of all other apps
are the basic white background with black/coloured text ???
What is it that I don't get about it ??? (I personally find it very
hard to read text that way.)
Kind regards,
Mats
I hate .textClipping files, they are some kind of bastard
implementation of a file. They really aren't terribly useable but they
are easy to create and so show up far too often. I've never looked into
the format but I don't understand why Apple didn't just make them txt
or rtf files. Instead they created a specially functioning file that is
not well supported.
.textClipping files are supported as expected if you drag from the
Finder to an open document in TextMate, i.e. the contents are inserted
at the insertion point.
Dropping a .textClipping file on TextMate's app icon opens a new empty
window with the textClipping's name. Desired behavior would be to
display the textClipping's contents. Bonus points for making the
textClipping editable!
Selecting a textClipping in the project drawer displays an empty window
with the title set to the textClipping file's title. Desired behavior
would be to display the textClipping's contents. Bonus points for
making the textClipping editable.
Dragging a textClipping file from a project window to the currently
displayed document results in no change to the current document.
Desired behavior is to insert the contents of the textClipping file at
the insertion point, i.e. the same behavior as dragging from the
Finder.
thanks for listening!
Hi All,
I was wondering if anyone's been working on js syntax highlighting.
I derived one from the ruby file, but it's still a tad bit buggy.
Perhaps we could join efforts?
I'll post the bundle as soon as I get back to the mac.
>Given that TextMate is pretty good at piping output from shell
>commands, would it not be possible to automagically generate a running
>"TODO" list in a file using a command similar to this...?
> `grep -r FIXME /Users/USERNAME/Sites/FooProject/`
Merlin:
You could pipe it to an external file. In the Filter Through Command window, choose "Document" and set it to "Show as tooltip" so it's non destructive to your current file, and run:
grep -r FIXME >~/project/TODO; open -a /Applications/TextMate.app ~/project/TODO
It will auto-generate and pop open for ya.
Regards,
Joe
I can't decide if this is a TextMate question or a GREP question, but
here goes.
Like a lot of people, I frequently use HTML comments like this to
remind myself where known problems exist:
> `<!-- FIXME sibling P tags not taking margin/padding in IE/Win -->`
Given that TextMate is pretty good at piping output from shell
commands, would it not be possible to automagically generate a running
"TODO" list in a file using a command similar to this...?
> `grep -r FIXME /Users/USERNAME/Sites/FooProject/`
Is that sensible? And how might I set that up in a doc to refresh
itself? Better as a separate shell script I'd call up somehow? Maybe
better off as manual macro I run when I want updates? TIA.
(Man, I'm just *loving* the possibilities of this app)
mm
--
Merlin Mann
43Folders.com
Hello,
I'm just trying out TextMate and I very much like the feature for collapsing
brackets. (I remember seeing a post on some mac blog about using
OmniOutliner to write code just so a similar feature could be achieved.
Anyway...)
However, I have a suggestion. I have trouble distinguishing between the
little triangle icons used on the left side. I was thinking adding color to
them would make it much easier to see which is the top and bottom and which
is collapsed. So I looked in the resources of the app and found the graphics
files and tried changing them. The colors I chose are perhaps a bit much,
but perhaps this post will inspire someone else (or the developers) to come
up with a better color scheme.
I went with a red-yellow-green stop-light color metaphor. Green is the top
of an open triangle. Red is the bottom of an open triangle. And Yellow is
a collapsed triangle. If that makes any sense...
Basically, I changed these files:
Folding Bottom Cap.png -> tint Red
Folding Collapsed.png -> tint Yellow
Folding Ellipsis.png -> tint Yellow
Folding Top Cap.png -> tint Green
I've attached a zip containing my newly tinted PNGs. I'm not sure if this
mailing list will let attachments go through, but if it does, enjoy.
Otherwise, I guess you'll have to tint 'em yourself.
Simon in New Orleans