Is it open to me to set HTML attributes to have a different color to
the tag itself? I'm aware that I can edit the relevant file in the
Bundles directory to configure my syntax coloring but recall reading
something somewhere that this was not possible as yet re attributes &
tags.
Hi folks,
I wanted to try TM for Perl programming, so I whipped up a quickie
syntax coloring bundle, available at
<http://math.sfsu.edu/hsu/textmate>. You might not like my subtle
colors. Feel free to change them for yourself.
I'm certain this work can be improved. If you do modify it, I'd
appreciate your sending me the improved copy!
best wishes, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
James A. Baker asked me for a BBEdit feature where the selection is
wrapped in a tag, which you pick from a list of tags. But then his
stream of thoughts derived the following TextMate solution, which I
think was very neat:
Create this snippet, name it _wtag:
<${2:tt}>$1</${2:tt}>$0
Then select Start Macro Recording and type:
cmd-x, _wtag, tab, cmd-v, tab, stop recording, save it for later.
Now you have a macro which wraps the current selection inside a tag
pair (the default tag name is tt, but you can change it). Press tab
again after having typed the name to leave the snippet.
Another neat trick I saw on a blog (but unfortunately lost the
reference) was a command configured to do:
open http://php.net/$TM_CURRENT_WORD
So simple, and yet so powerful (it looks up the word under the caret in
the PHP reference documentation).
It's really fantastic to see this end-user innovation, keep it up! :)
Kind regards Allan
Has anyone successfully unsubscribed from this list? When I hit either
the "password reminder" or "unsubscribe" button in the Mailman web
interface, I don't get any email from the Mailman. But he's happy
enough to deliver the list messages.
Guan
Just thought I'd chime in with my experiences of using TM over the last
couple of days.
Firstly, may I heap lavish praise on the developer(s). The
live-updating project drawer (despite its shortcomings, below) is
fantastic, and the Esc autocomplete is nothing short of magic. How does
it *always* seem to guess the right completion for a given start string
out of many possibilities? Regardless, this has made coding a lot less
laborious. The snippet and macro features are also great time savers.
But enough of the praise, here's my comments and suggestions :-)
* I rarely want to view the ASCII version of an image file. How about a
preview of the image in the editor pane instead?
* Whilst speed is generally not an issue, there is an annoying 2-4
second delay (i.e. spinning beach-ball) when switching to TM when I've
got an (open) project located on an SMB share.
* By default, TM requires a lot of keyboard mashing for relatively
common commands. For instance, I see no reason why the Command + Option
+ Control + D for toggling the project drawer can't simply be Command +
D (in fact, I've hacked this myself in IB and it works fine)
* How about a split view (i.e. the ability to see different sections of
the same document at once)?
* TM doesn't seem to remember the window scroll position if you do the
following: open a document (that scrolls), and scroll down without
changing the insertion point. Switch to another document/tab. Switch
back. The window scroll position is back to its original position, and
is no longer at the section of text I was looking at.
* When searching within a document for a string located "below the
fold", the matching string barely creeps "above the fold", i.e. is
bottom aligned relative to the window. This makes it harder to see the
match in context. I prefer the behaviour (which I believe BBEdit
exhibits) whereby the matching string is centred vertically in the
window, making it easier to spot and put in context.
* How about being able to create a "real" folder (as opposed to a
group) in the project draw?
* I would like the group name to be selected and editable immediately
after its creation, à la "New Folder" in the Finder
* The Shift Left/Shift Right commands exhibit weird behaviour. I expect
them to work like Command + [ and Command + ] in BBEdit or SubEthaEdit,
but they don't. (Sorry for the vagueness. It's easier for you to see it
yourself than for me to describe how.)
Overall, I like the direction TextMate is going in.
Regards,
Rich Barton
I found the single pixel cursor rather difficult to see with a black
background (even though I've edited the bundle for Ruby now). I'd like to
see an option to use a block cursor.
Thanks,
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
I have just downloaded textmate and I looks like a very promising editor. I hope to be able to use it soon!
I would very much like to see an environment for both latex and python. Those two environments are those I am in most of the time. I am sure that I not alone.
Also, to me the tab behaviour of Emacs (where you can press tab anywhere on a line to align the content of the line) is a big plus when programming. It helps structure back the code rapidly. This feature would be part of a more global automatic formatting for programs but at least it is almost essential.
This being said, you are doing an excellent work!
Congratulations and I look forward to your next version which might include these features.
Hi All,
Been a bit busy at work today, but the list is updated now. So far we
have:
C
C/C++/Objective-C
Java
JavaScript
Mono/C# (now updated with compile output support thanks to Jan Sabbe).
OCaml
PHP Smarty
Python
XML
Have a nice day!
Yours,
Ian.
#ifndef __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | http://ianp.org
#endif
When editing Ruby code, everything after the first "/" in code turns
yellow. For example, in the code
class Foo
def bletch(num)
@foo = num / 12
end
end
everything from the "/" to the end of the file is yellow.
Is this a known issue? What can I do to fix it?
Jim
--
Jim Menard, jimm(a)io.com, http://www.io.com/~jimm
"...it uses Smalltalk, rather than modern-day kludges such as Java,
which
resembles a modern object-orientated environment in the way that a pub
ashtray
resembles a cigar store."
-- Andrew Orlowski, "Forgotten language enables nonstop gadgets",
The Reg
Hey,
Thanks for a really neat product. I'm still messing about with it, but
I think it's a keeper.
I've noticed some things, though --
Odd help behaviour: the tooltip that appears when you hover over the
Commands textarea says that you can use the purple help icon to get a
full list of TextMate's exported variables, but that just goes to the
Commands reference page instead. There's a small link to the list of
variables, sure, but maybe the list of variables belongs on that page
too? (or it should link there as advertised, instead?)
Also, why does selecting Help *from the Help menu,* while the commands
window is open, mean that it goes to that page? I understand that
context is cool, but I expect to find that choosing '(AppName) Help'
from the Help menu would take me to the app's help index page.
Second: the whole dealie about the preferences window has been
discussed, it seems, but it's also something I miss. While there's
nothing that really *has* to be in a preference window, it seems
logical to me that per-document options ought to be kept well away from
the permanent ones.
Third, I'm not sure if it's my own font problems or not, but I've never
noticed it any other place -- when I'm using any bitmap font the first
character in a line has a larger gap between it and the next character.
You can see this in action here:
<http://www.raena.net/images/gappy.gif>
Fourth, why is Page Up and Down moving the insertion point? Can one
change that at all?
And finally, I'm not really concerned with (s)ftp support myself since
I prefer to use Transmit, but does anyone know how i can tell Transmit
to make TextMate available in its list of external editors? Can that be
done at all?
Hi,
Are there any known issues with TM and saving files that needs
authorization to view/edit?
I opended /etc/hosts with sudo from the cmdline, and TM doesn't seem
to want to save the changes, no error, it just remains unsaved.
--johan
--
Johan Sørensen
Professional Futurist
www.johansorensen.com
I usually work with an additional monitor plugged into my Powerbook at
home, but not at work.
If I accidentally leave anything open on the external monitor before
disconnecting everything, on restoring the affected application the
window is pulled onto screen. That is to say, if at any time the desktop
area is reduced, windows readjust their position so not to be lost.
TextMate doesn't seem to be doing this.
I connected up my external monitor this evening to find a window that
had been 'lost' all day!
drew.
Does anyone know if it would be possible to use the various extensions
within TextMate to provide a navigable list of functions within a class
file? A bit like the one BBEdit or SubEthaEdit has.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
hi,
Just starting using RubyonRails....and each time i create a project i
want to modify .htaccess to enable mod_ruby....and it's not possible.
would be cool if the contextual menu of the drawer propose a 'toggle
invisible file view' item or something like that
thanks...
textmate is really the best 40$ i ever spent
Hey Allan & David,
First, thanks for filling a major void in OSX land. I've been using
UltraEdit on Windows for several years until I bought a Powerbook in August.
I love everything about OSX except the lack of a solid (and reasonably
priced) text editor. Thanks to ditto, I think I found one.
So far I'm pleased with TextMate, though I haven't been able to use it much.
The single biggest problem I've found so far is that it seems to load files
entirely into memory. Try loading a 100MB enterprise server log in TextMate
and you'll see it die while consuming megabyte after megabyte of memory.
UltraEdit by contrast only loads what it needs into memory, making it very
very fast while viewing and manipulating large files. UltraEdit handles
GB-size files without breaking a sweat. I think the only complication
around that is line numbering becomes slightly more involved.
The second feature I'm looking for is a hex view/edit/search&replace. Being
able to locate and fix an invalid UTF-8 character sequence inside an XML
file that is causing my application to bomb has proven to be a critical
feature. Hex search&replace comes in handy when I need to remove all 0x00
characters from a file, for example.
Finally -- and this should be the easy one -- please add a "count" button to
the search window. Often I want to count the occurrences of a certain error
message in a log, or see how many things I'm about to change by
search&replace.
That's it (for now ;) Keep up the good work!
Thanks,
Kevin Hunt
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