I notice that there is no FORTRAN syntax highlighting built in to
textmate. Surely there are FORTRAN programmers out there coding in
TextMate? I found one link to a bundle, but it was dead. Can someone
please point me to the latest FORTRAN bundle? I do about half of my
programming in FORTRAN, so this is vital. Thanks.
Is there a way to turn off HERE document syntax highlighting in Tcl?
I' getting wrong highlighting when adding events like:
event add <<Paste>> <Ctrl-v>
because it thinks it's a HERE document. I've looked at the Tcl
syntax, but there isn't anything there, so I'm guessing it's coming
from somewhere else...
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Hi,
I can't seem to locate any info about the txmt:// URL scheme anymore.
It used to be in the release notes, but sadly they now appear to be
curtailed (not good, I used it as manual all the time!). It's
probably in the blog somewhere, but without a search function that is
a bit hard to find. As usual 'Help' is useless. And since the mailing
list messages are prefixed with [TxMt] a google search isn't helpful
either...
So where can I find it these days?
Gerd
Hi,
I've made some custom snippet for Perl in bundle. How can I export
these ones or the whole bundle to share them?
And another question: how to use "Drag commands" (i.e. in html)?
TIA
--
salvo
Hi all,
I would like to start a discussion on the tabbed interface in project
windows. I have some issues that I would like to point out and I will
offer my opinions. However, I really just want to see what the TM
community thinks about these things.
When a project window has lots of open files and there is not enough
room to fit tabs across the top of the window a arrow appears next to
the tabs. When you click on the arrow you are given a list of those
files that do NOT have a tab. You can then click on one of those
files to bring it to the front. But, then the front file does not
show its tab. You can see what file you are working on by looking at
the title bar but I think this is confusing.
The interface is combining a list interface with a tabbed interface
and I think this could be improved. The first suggestion I have is to
have all open files in the list and always show the arrow. You could
have the files that have visible tabs be in bold. There are times
when I just don't see an open tab and click on the arrow only to also
not find the file there.
The next suggestion is to have the tabs scroll and always show the
currently forward file's tab. I don't mean to add a scroll bar, just
that the tabs could shift over when a file is selected from the arrow
list.
Does anyone else find that this behavior could be improved? Are there
other suggestions? Has this discussion already occurred? If so then
many apologies.
-Eric
Following are two Perl snippets that cause syntax highlighting to get
wacky.
This first one causes everything that comes after for the remainder
of the file to be colored as a string:
message(<<EOF) if $TT_PREFIX;
EOF
And with this one, as well as the one above, anything after the first
here-doc delimiter is colored as a string:
$sql .= <<SQL if $type eq 'com';
SQL
Regards,
Michael Irwin
Please please Allan include block undo/redo. At least as an option.
Not only is it standard on all other programs (that I know of) I find
it far more usable. If I want the latest character I typed undone,
I'll hit backspace.
I currently sit and try to figure out a good XML scheme for myself,
and I find that I change whole words very much, such as tag-names and
allowed values for attributes, it's a pain to hit the undo button so
many times as is necessary.
Andreas
Hi,
I discovered db_structure in Rails last night, as a way of creating
SQL files once instead of once for each database type. And so I've
mangled together a language for it, basically stealing the rhtml
syntax and modifying it to include 'source.sql' instead of
'text.html.basic'. Hopefully I've done right -- it appears to work.
I've attached it in the hope that other folks might find it useful
and that it might wind its way into the svn Ruby bundle sometime?
Regards,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I create a new file with ISO-8859-1 (Latin 1 or Windows) encoding selected,
either by doing a Save As.. with ISO-8859-1 selected or setting the File
Encoding to ISO-8859-1 in Preferences.
I close the file and reopen it. It's not opening in ISO-8859-1. Does Text
Mate reopen all files in UTF-8 event though ISO-8859-1 is specified in
Preferences or the file was save as ISO-8859-1?
Thanks,
Ed
Hi Allan,
got a bug for you (unless it's a feature I don't get)
release 540
c++ file
after editing for a while with file open in 2 windows (in fg, file
was in a temp project) switched to bg window (lone file), and
scrolling there moves the cursor offscreen -- ie, the window won't
scroll. Window has no scrollbars. Cmd-L takes cursor to line xx
offscreen as well. In the other window (same file, in temp proj)
scrolling works fine. Pg down has no effect.
Resising window fixed it (redrew scrollbars; keyboard motion now
makes window scroll)
****
update: i can recreate this. it occurs when a window has no
scrollbars & you edit (vertically enlarge) the same file in another
window (eg drag its icon into a temp. project & edit) such that it
needs scrollbars - the original window must be resized or window
scrolling is disabled.
scuse me if this is known
cheers,
David
Summary
Folding should count fold start/stops at the current indentation
level to properly pair a fold start with a fold end.
Details
With my Lua bundle, I have folding set to work for block comments and
functions (among other things).
If 'v' represents a start fold marker, and '^' represents and end
fold marker, then creating an unindented (column 0) function looks
like this:
v function foo( )
print( 'hey' )
^ end
So far, so good. Now, suppose I block comment out this function
(without indenting it):
v --[[
v function foo( )
print( 'hey' )
^ end
^ ]]
This looks correct, but if I toggle the first folding marker, I get
this:
> --[[•••
^ ]]
In other words, the folding looked for the first end marker that was
at the same depth as the start marker, and (incorrectly) used the
'end' line. Instead, I propose that it should scan down and when it
sees the second start fold marker at the same depth, add 1 to a
counter; when it sees the first close fold marker at that depth, it
checks the counter...since it is non-zero, it subtracts one. Finally,
when it sees the last fold marker, and the counter is at zero, then
it uses that as the correct, paired end fold.
P.S. What's the netiquette/guideline regarding attaching screenshot
images inline to an email message to a mailing list, when that
mailing list is almost certain to be used solely by MacOS users, who
likely are using a Mail program that would support them? Would have
been easier than the ascii art above (which itself is non-plain text,
so I'm violating another common mailing list rule there).
Saw that this bundle was edited by Allan on 11 october, to remove the
F1 key, bundle found here;
http://anon:anon@macromates.com/svn/Bundles//trunk/Bundles/
PHPCodeCompletion.tmbundle/Commands/Insert%20Snippet.plist
Is this somehow "official" now, I installed that bundle (and manually
removed the F1 key from it) ... I tried removing it from my bundles
directory and restart TextMate, but I lost funcionality and coludn't
find it in the "more bundles" button either, so I suppose it's not
yet in the build as such?
Andreas
Hi,
I'm trying to see if I can manage without eclipse in my daily
workflow. I'm not sure if I'll be able to do without it completely,
as it does nice stuff like popup function name completion etc. that
really need the editor itself to be written in Java. I should be
able to do without it for my view code and (server-side) javascript.
One thing I miss from XMLBuddy (eclipse plug-in) is Ctrl-space to
close the current tab. e.g. if the editor looked like this:
<div>some text|
and you hit ctrl-space, it would append </div> to that line. Has
anyone written a macro to do that? I would imagine it could get
quite complicated, XMLBuddy will still append </div> even if the edit
buffer looks like this:
<div><p>some text</p>|
so it isn't just reading back to the first <:alpha:+>.
I know about the <[tab], >[tab] and <a[tab] snippets, but I always
forget to use them. I could probably learn, given time...
Jon
I am a beginner with textmate, and I wondered where I could
get soem kind of tutorial for it. Not for the basic editing
fuvnctions, but for customization, what textlate can do apart
editing, etc.
I tried the wiki, but I'm much more at ease with a document I can
print and read. Is tehre something like that ?
--
Erwan David
For those who got r540 and is on a Panther system, here's a direct
link to the previous build:
http://macromates.com/textmate/build/TextMate_r528.tbz
I do plan to continue with Panther support, but with the current
developer tools, it seems to be Panther or i386, but not both, if I
want to use libcurl -- it may take a day or so before this is sorted
out. Meanwhile the auto-update won't let Panther systems update to r540.
When I hit enter on <div>|</div>, I get this:
<div>
[tab]|
</div>
which is great, I can immediately begin typing and nesting and so on.
I'd like this behaviour also for the p tag for instance, and all the
other block tags. Also for all xml tags that aren't ended with a /
(that is, not for <tag/>, but for <tag></tag>).
Andreas
I added the following to my javascript bundle, over the normal
function detection code (but that wouldn't make any difference, right?)
{ name = "meta.function.js";
match = "^\\s*([a-zA-Z_]\\w*):\\s*(function)\\s*\\(([^)]
*)\\)";
captures =
{ 1 = { name = "entity.name.function.js"; };
2 = { name = "storage.type.function.js"; };
3 = { name = "variable.parameter.function.js"; };
};
},
{ name = "meta.function.js";
match = "^\\s*(var\\b)?\\s*this\\.([a-zA-Z_]\\w*)\\s*=\
\s*(function)\\s*\\(([^)]*)\\)";
captures =
{ 1 = { name = "storage.type.js"; };
2 = { name = "entity.name.function.js"; };
3 = { name = "storage.type.function.js"; };
4 = { name = "variable.parameter.function.js"; };
};
},
the first should match functions like
functionName: function(arguments) { ... }
and the second
(var) this.functionName = function(arguments) { ... }
with the first var being optional.
Is it correct? It seems to work but I don't dare trust my RegExp
skills ;)
Any other comments?
Andreas
Hi,
I don't suppose it would be a quick fix to make the 'go to symbol'
dialog behave in the same way as the 'go to file' dialog? Or even
just make the list of symbols sortable?
Regards,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I tried to contact 'Wes' about the Lua bundle mentioned on the Wiki
bundle page, but never got a response, and decided to just write my own.
I think the syntax highlighting is correct - it includes appropriate
highlighting for all the keywords as well as all the built-in library
functions.
In addition to some convenient Snippets for code forms that I
personally write frequently, I've added 'cheat sheet' Snippets for
all the global built-in functions and the table, string, and
coroutine libraries. These tab trigger Snippets fill out the argument
list with descriptive names, including which parameter(s) are
optional. When parameters are optional, I included the preceding
comma in the placeholder, so that tabbing through the function and
pressing delete will remove any undesirable optional parameters.
(I got tired of entering all the Snippets, and have not yet added
Snippets for the math, os, or io libraries.)
You can download my bundle from http://phrogz.net/tmp/
Lua.tmbundle.tar.gz
(Is anyone else using programming Lua on MacOS X? :)
Hi all,
I just managed to crash TM. Do you want me to put the crash log
somewhere? It seems a bit big to post here I certainly will if you
would like me to.
-Eric
Hi everybody,
It took me a little while to come up with this, what with finding the
correct command and environment variable etc., so I figured that I
might as well share it here. When you compile something with TeX or
LaTeX in Terminal.app instead of say TeXShop or our favourite editor
and an error message like this pops up
-----------
! Missing $ inserted.
<inserted text>
$
l.7
?
----------
you can enter 'e' to edit that file and correct the error. The
problem on a vanilla TeX installation is that the vi editor is used
for this. To use TextMate instead you can put this command in
your .tcshrc
setenv TEXEDIT "mate -w -l %d %s"
and on entering 'e' TextMate will be launched and the caret will be
placed on the line where the error occured. For the bash shell the
above command would be
export TEXEDIT="mate -w -l %d %s"
I hope you'll find this useful, I certainly do :-)
Bye, Thomas