I was poking around in the HTMl bundles and found an easy way to add
more elements that would fold (Marc asked about this).
Go to and edit:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
HTML.tmbundle/Syntaxes/HTML.plist
Line 34 and 35 are:
foldingStartMarker =
"(<(?i:(head|table|div|style|script|ul|ol|form|dl|p|li|a|select))\\>.*?
>|\\{)";
foldingStopMarker =
"(</(?i:
(head|table|div|style|script|ul|ol|form|dl|p|li|a|select))>|\\})";
I added the p,li,a, and select.
One thing to note is that a fold will only occur if an element takes up
multiple lines (one line wrapped will not fold).
Have Fun,
Eric Curtis
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6.10.2004, space aliens observed Sune Foldager saying:
>>2) I for one can never remember all the different versions of (X)HTML
>>and how you're allowed to nest tags in each version and what tags
>>have which attributes and so on.
>I think the best practice is to just write HTML like it was XHTML
>strict.. or at least transitional. That is, always end your tags,
>always end non-dual tags with /> and so on.
That's what I do, but it doesn't help me with the problems I mentioned.
>I think making TM into an editor which manages all the standards for
>you is a mistake. There is the w3.org site for checking the standards,
>and I think it's best if the person knows about it, not the program.
I write applications in Java, C#, Objective-C, C, C++, AppleScript, Perl
and some other languages. I write HTML, CSS, JavaScript, RSS and more
for several different web sites which use different versions of (X)HTML.
I'm afraid I don't work with HTML often enough to remember what
attributes were removed from which version of HTML, but I still want to
write valid HTML. Of course I validiate my sites with the HTML
validator. But even so I would like to have an editor that helps me
write corrent HTML in the first place by showing me what's allowed and
what's not while I actually write the code.
This is not a show stopper. TextMate is great even without such a
feature. But this feature would definitely help me a great deal and save
a ton of my time.
lucas
- --
"There is no more noble occupation in the world than to assist another human being - to help someone succeed."
-- Alan Loy McGinnis
-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.2.2
iQA/AwUBQWRAJrXYdom/dB2cEQJeGACgmlCeSc0p/4oUMK/C2/ToMlret/EAnA3L
Zl4ZH/30CZfRPBLj2UySf465
=4foR
-----END PGP SIGNATURE-----
Hi,
First of all, congratulations on a very impressive first release! I
think TextMate has great potential, but people should keep in mind that
it's only a 1.0 release. BBEdit (for example) has a 12 year head-start!
Give it some time.
I humbly submit these two small(?) feature requests which I haven't yet
seen on this list:
- An option to highlight the line containing the insertion point (a la
BBEdit 8).
- An option to "Indent wrapped lines by n spaces" (a la Xcode).
Both of these seemingly trivial things would make my coding life
(ObjC/Ruby) a bit easier.
Thanks for listening, and keep up the excellent work!
Kind Regards,
-jeff
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6.10.2004, space aliens observed Nick Hristov saying:
>>6. Context sensitive code completion that is included in skedit and
>>DW (XHTML/CSS are most importnat to me).
>In my opinion that is a bad idea. This will bloat the editor. XHTML
>and CSS are not all that hard to learn, and you can quickly learn by
>heart the properties.
Two thoughts:
1) It won't bloat the editor if the user can turn it off
2) I for one can never remember all the different versions of (X)HTML
and how you're allowed to nest tags in each version and what tags
have which attributes and so on.
Of course, it will take time to implement something like this, so the
question is whether there are enough people who want it.
TM Users wrote:
>Lucas, just in case you're not aware, that's exactly how skEdit
>operates
Well, the problem with skEdit is that I downloaded it about a month ago,
opened it, promply forgot about it and now can't open it anymore since
the demo has expired :-)
I'll try to get it running again.
lucas
- --
"Are you the boys that spray-painted my dog?"
"Uh, no, that was some other guys, huh huh."
-- Beavis & Butthead
-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.2.2
iQA/AwUBQWQyj7XYdom/dB2cEQLdoQCgw+JhPRFUH8WQMQl8s3TmBu2R9YMAoJD/
P54vyar6b9m9UFdt7qrRJN9S
=z5Lv
-----END PGP SIGNATURE-----
First of all, congrats on getting the app out. As an imminent
switcher, I have been looking for an ultraedit replacement.
I know the site says that Editing over Secure FTP is coming soon.
However is there a way to open and save documents over FTP. I did a
cursory search and couldn't find it. Any help would be appreciated.
Thanks,
Ron
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6.10.2004, space aliens observed Nick Hristov saying:
>Why not just do an ftp mount through the finder?
Because you can't write to a server mounted in the Finder.
lucas
- --
"It's dawned on me that Zero Tolerance only seems to mean putting extra police in poor, run-down areas, and not in the Stock Exchange."
-- Terry Pratchett
-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.2.2
iQA/AwUBQWQzC7XYdom/dB2cEQI3XQCg2/L1YMraapquMtP/8B8QPNL1GnEAn3YK
KUP8Ir+r6mMS2k8gXzczH66r
=d16D
-----END PGP SIGNATURE-----
Nick,
FTP Mount via the finder is read-only. That would be kinda
pointless for this application wouldn't you think?
On Wed, 6 Oct 2004 12:33:20 -0500, Nick Hristov <hrisnik(a)iit.edu> wrote:
> Why not just do an ftp mount through the finder?
>
> Nick
>
> On Oct 6, 2004, at 11:58 AM, Lucas K. Mathis wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 6.10.2004, space aliens observed Tomas Jogin saying:
> >>>> I hope ftp-support is added soon, not just being able to edit a
> >>>> remote file, but actually being able to associate a project with an
> >>>> ftp account.
> >>> Is there any reason why you don't use an actual FTP application for
> >>> this? Interarchy has some awesome features for this kind of work.
> >>> What I do right now is this: For each Project in TextMate, I have an
> >>> FTP Disk in Interarchy. When I open a Project, I mount the FTP Disk.
> >>> Whenever I change something in TextMate, it's being uploaded
> >>> automatically to the FTP server.
> >> The reason I don't want to use an actual FTP application is that I
> >> don't want to incessantly switch between the editor and the
> >> ftp-application.
> >
> > Using FTP disks, you don't have to. Of course, it's not quite as nice
> > as
> > absolute automation, but it's pretty close. And it could probably be
> > totally automated using AppleScript by having a script that opens both
> > the Project and the Interarchy FTP disk.
> >
> > Once both are open, you don't have to do anything in Interarchy
> > anymore.
> > It will pick up on any changes you make in TextMate (or any other
> > application) all by itself.
> >
> >
> >> The interarchy feature you mention sounds pretty nice, and in fact
> >> I'll download Interarchy right now, because it does sound sweet, but
> >> having it integrated with the editor would be even better. By the
> >> way, something like that isn't possible with Transmit (which I
> >> currently use), right?
> >
> > No, Transmit doesn't do anything like that as far as I know. FTP disks
> > are a unique feature of Interarchy.
> >
> > lucas
> >
> > - --
> > "These guys are pretty cool - even though they're sixty."
> > -- Beavis & Butthead (about Aerosmith)
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGP SDK 3.2.2
> >
> > iQA/AwUBQWQkQLXYdom/dB2cEQKYdACgmZYdBNb4NtRTjweCzWyYU2vsbzIAoMQ9
> > GXF/o6AFjsPVB9hl2qW7VSjc
> > =S7Mp
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > textmate mailing list
> > textmate(a)lists.macromates.com
> > http://lists.macromates.com/mailman/listinfo/textmate
> >
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>
I've got a rough cut at XML and Java syntaxes done. They're available
in my Subversion repository[1].
[1] http://telly.bravo5.org/svn/repos/TextMate/
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
Gread job so far, macromates!
Here is stuff to think about:
- AppleScriptability (pardon my ignorance, is it scriptable)?
- Gutter: use color lines as clues for start and end of code blocks
(steal that idea from jEdit :)
- Preferences? Editting bundles is an unpleasant hybrid between mac and
unix. (btw., in the short term you can create a "themes" part on your
website and place collections of bundles there ...
http://theexciter.com/ has a few already).
Did I say you have done great job? Hope you bury bbsoftware :)
Nick