http://trippledoubleyou.subtlegradient.com/textmate/taylott_svnlog.rss
My personal crazy textmate bundles and themes are now available in
RSS form.
Enjoy.
This is especially important for making sure you have the latest
version of my themes, as i'm updating the BETA themes constantly.
thomas Aylott
subtleGradient
oblivious(a)subtleGradient.com
Hi,
I am a newbie to TextMate.
I've tried to run a simple test with creating a
TeX document and running a latex (using the built-in)
bundle. I am getting the "unbound variable error"
when I try to execute the command. I get similar
problem with other bundles.
What seems to be the problem and how to fix it?
Thanks.
M.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
for all the germans using textmate for html-coding this little
command will lookup the current html-element on selfhtml.org. i'm
sorry as of now there's no english version of this excellent website
available.
regards, niko.
#!/usr/bin/env ruby
#
# open element reference on de.selfhtml.org
# this is certainly a BAD implementation
# works for me, though
# any improvements are highly appreciated
# niko.
require 'net/http'
$tag_name = ENV["TM_CURRENT_WORD"].to_s
# get the elemnte.htm and attribute.htm:
Net::HTTP.start( 'de.selfhtml.org', 80 ) do |http|
$html_elemente = http.get( "/html/referenz/elemente.htm" ).body
$html_attribute = http.get( "/html/referenz/attribute.htm" ).body
end
# strip the head and the current tag:
$html_elemente.gsub!(/(<!.*<body>).*(<h2><a class="an" name="#
{$tag_name}">#{$tag_name}<\/a><\/h2>.*?)<h2>.*/m,'\1\2')
# prepend "elemente.htm" to anchor-links:
$html_elemente.gsub!(/href="#(.*?")/,'href="elemente.htm#\1')
# the current tag:
$html_attribute.gsub!(/.*(<h2><a class="an" name="#{$tag_name}">#
{$tag_name}<\/a><\/h2>.*?)<h2>.*/m,'\1')
# prepend "elemente.htm" to anchor-links:
$html_attribute.gsub!(/href="#(.*?")/,'href="attribute.htm#\1')
# concat the two strings:
$html = $html_elemente + $html_attribute
# turn relative links into absolute links (for hrefs and imgs):
$html.gsub!(/href="(.*?")/,'href="http://de.selfhtml.org/html/
referenz/\1')
$html.gsub!(/src="(.*?")/,'src="http://de.selfhtml.org/html/referenz/
\1')
# output the html
puts $html
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
I'm not sure what XCode, or BBEdit, call them - and I'm also not sure
if this has been discussed in detail on this list - but has there
been any thought to having a double-paned view in Textmate?
Being able to have two documents open side by side could be extremely
useful.
Colin D. Devroe
Thomas,
I really like the work you have done so far on say the iLife theme,
also the Brilliance beta seems cool, although I will need to test it
if it is useful for work ;) I have never had a non-white background yet.
I am looking forward to your theming-howtos. Will you cover just the
theme parts or will you include some stuff about the language grammar/
markup side of things as well?
Daniel
…who just figured out that combining two selectors in themes with
transparent colors makes for very cool effects.
Howdy. I'd just like to revive this old feature request.
I have a much large monitor than ever before.
I also develop rubyonrails apps, so most of my files are rather short.
I want to keep the window the full height of the screen. But when I
do that the code is all stuck to the top of the screen.
It's much easier to code when the code i'm editing is in the middle
of the window, in the middle of the screen.
Any chance of adding an extra half page of scroll space to the top
and bottom of the text pane?
Maybe it could be a preference for people who'd hate it.
Thanks, much much!
> oh yes. this would be lovely icing.
> not particularly necessary functionality, but the mac isn't about
> bare necessities.
> it's about making things lovely to use
>
> On Aug 24, 2005, at 11:46 PM, Ivan wrote:
>
>> Hi,
>>
>> Half window view is like adding "virtual space" in text windows to
>> push the last line to the middle of the windows. It behaviors as if
>> you have added a couple of returns at the end of the document. I hate
>> to see all the lines in the viewing area pushed up everytime I hit
>> return or softwrap to the next line. With half window views, the
>> lines
>> only get pushed up every half window instead of every line.
>>
>> I use this feature a lot in vim and TextWrangler. In vim, it can have
>> any number of virtual space (denoted by tildes), which I think it's
>> better implentation than TextWrangler, which allow you to choose
>> "none", "half", or "full" only. However, I will be happy with just
>> one
>> option, half window view.
>>
>> Anyway, I just want to bounce the idea to other users.
>>
>> Ivan
Hi,
This is a bit off-topic for this list, I know, but since I know there
are a lot of highly competent people on this I'll give it a try...
I'm currently trying to figure out how to use regexp + javascript to
parse the content of a web page. What I want to do is collect weather
data from a Norwegian website and include it in a dashboard widget.
Here is the site with an example search:
http://tux.aftenposten.no/weathersearch/weathersearch.do?
name=levanger&sok=limnor
I tried to copy the source into TextMate and use the regexp search in
TM to figure out the patterns to use, but I can't seem to solve it.
Any help are appreciated.
As far as I can see, the weather data for a particular day are
enclosed by <tr><td class="idag" ... </tr>, but there is a lot of
space around the tags, which I presume must be included in the regexp
patterns.
Anyone here which could kick me in the right direction when it comes
to these patterns?
--
Mvh/Regards
Geir-Tore Lindsve
lindsve(a)bluezone.no
http://www.lindsve.net
Is there a way to get TextMate to treat files with the extension
"webarchive" as binary files? As Text they are useless and I'd love
to just double-click on them in the project window and have Safari
open them.
Dear TextMaters,
I am looking for a theme that works very well with LaTeX - I don't
care much about colors and such, yet. But it seems that TM provides
some very detailed features for syntax coloring and I am not happy
(yet) with the themes I have found so far, I would like much more…
so I am looking for either a theme base for latex that at least has
styles already defined for most sections, or some pointer on how to
best design a theme, how to find out the scopes for sections of text…
basically an in-depth-tutorial or documentation for the theme design?
(Maybe I am looking at the wrong places…?) Is there an easy way to
extract all possible scope selectors from a languag definition and
create a blanket theme out of this?
Dreaming?!,
Dan
Hello,
those of you that use LaTeX a lot, you might be interested in
checking out the LaTeX experimental bundle that i just checked into
the repository. It's got a couple of commands that are still "rough"
and not quite production ready, hence the title "experimental".
One simulates the greek letter method of inserting letters commonly
found in emacs (i.e. first press shift-ctrl-g, then the letter, then
space).
Another encloses the current sequence of non-space characters in
dollar signs, so you could for instance type: \sin ctrl-$ and get $
\sin$.
Another, given as a selection a math equation of the form $...$ or $
$...$$ or \(...\) etc, it toggles the math symbols. I.e. it will take
$foo$ and \(foo\) to \[foo\] and vice versa.
Finally, the home and end keys are bound to two macros that are
inspired by Thomas Aylott's macros for moving about in HTML
documents, except they try to do a descend job with LaTeX.
All these are work in progress, and any ideas/contributions/
suggestions are more than welcome.
Haris
Hi,
is there a way to, when saving, to remove all trailing spaces and tabs
from lines. I would like this when saving C++/C files.
Cheers, Fons.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers(a)cern.ch Phone: +41 22 7679248
WWW: http://fons.rademakers.org Fax: +41 22 7669640
I use reformat paragraph a lot for reStructuredText. Normally the
text is not indented so reformat paragraph works well. However, for
lists and other things that are indented, reformat paragraph works
unexpectedly. When I reformat a paragraph that is indented by a
single tab the indented text is indented with spaces. So, the first
line still contains the tab I inserted, but subsequent lines are
indented with spaces. This of course causes issues with the reST parser.
My question, is this something I've screwed up in my settings or is
this expected behavior? I expected whatever indent I started with to
be copied to subsequent lines. Nothing turned up when I searched the
mailing list. Any help is appreciated. Thanks _matt
Hi, I have a Python C module, and comments between the
end of the arguments and the opening brace seem to screw
up its ability recognize the function name:
static PyObject *
tableio_writeTable(PyObject *self, PyObject *args) /* args: (string) */
{
/ * function body */
}
I'm not sure how to modify the module to get this to work.
Putting that comment somewhere else makes it work fine,
but I'd like to avoid having to go through the code and
editing every function definition.
Can someone offer a hint as to how to fix the module?
TIA,
Dave
Howdy.
Just wanted to let you guys know about my new theme.
http://macromates.com/wiki/Themes/UserSubmittedThemeshttp://textmate.svn.subtlegradient.com/Themes/Brilliance%20Black%
20BETA.tmTheme
I'd like you guys to test it our for me and let me know if any of it
looks ugly or unusable with the code that you use.
I developed primarily for xHTML, CSS, JS, RubyOnRails & Ruby.
I also tested and tweaked it for: actionscript, Ada, ANTLR, asp,
asp.net, C, C++, obj-C, embedded Django, java, markdown, MIPS
Assembler, Perl, PHP, Python, Slate, SQL, xml
XML is currently rather hard to read without a bright monitor.
PHP could use some color tweaks to look less ugly. (even though php
doesn't deserve to look pretty ;) )
I haven't tested it with LaTeX, yet.
I got some great code samples from <insert name here, because I
forgot it>
If anyone uses a language where this theme looks ugly, please let me
know.
The idea of this theme is to be the ultimate theme prototype that all
themes are based on.
I, personally, will use this theme as the template that all my new
themes are based on.
So I really want to get the scopes as perfect and all-encompassing
as possible.
Thanks!
Enjoy ;)
PS: no screenshots of it yet.
thomas Aylott
subtleGradient
oblivious(a)subtleGradient.com
I created a poll on the wiki to get a feel for which languages
TextMate is primarily used with:
http://macromates.com/wiki/Polls/WhichLanguageDoYouUse
Cast as few votes as possible, i.e. do not add points to languages
you rarely use (it is not a poll about how many languages people
know, but which they actually use regularly).
Be vary of edit conflicts on the wiki page. These will be detected
automatically, but needs manual resolving -- it is probably easier to
just start over, if one happens (the wiki presents the diff when
committing the edit when there is a conflict).
I think queuing theory dictates that some edit conflicts are bound to
happen, given the number of subscribers to this list, but I am not
writing specific polling functionality just for this :)
Hi All,
I have been using textmate for a little over a week now and I love
the program. I have been using it for mostly RoR and HTML Development
but I am looking for a bundle that will help me create MySQL DDL
files. Any Ideas?
David Newberger
A search of the ML archives has come up empty, so I turn to the
mothership: I have a problem.
Textmate is selectively refusing to open (or, rather, display) files
that it should have no problem with.
Some quick and dirty testing seems to indicate that this has to do
with specific file extensions. It first manifested with a problem in
using the "Edit in TextMate" command, but now I fear it's more
widespread than that.
First, an example to show what the behavior is like. Then, how it
affects the whole system.
### Illustrative Example ###
At the moment I am writing this email in TextMate, via using the
"Edit in TextMate" command.
The file:
/private/var/tmp/folders.501/TemporaryItems/Trouble with "Edit in
Textmate".mail
opens just fine in TextMate. An experiment shows that I can open it
fine from the Finder by dragging it onto the TM icon.
However, when I tried to write this email from gmail, and used the
"Edit in TextMate" command from within Safari, it changes focus to
TextMate, but no file opens.
A file has been created:
/private/var/tmp/folders.501/TemporaryItems/Loading “Gmail - Compose
Mail”.safari
But textmate won't open it, not via File:Open, not via a drag to the
dock, and not via Get Info association of .safari files with TextMate.
__However__. If I select _more than one_ .safari file in the Finder,
and drag them to the TextMate, a very odd thing happens.
Textmate opens a new project with the three files listed. But
clicking on one of those files doesn't actually open the file:

You get a blank tab. Clicking on that tab _does_ display the file:

So there's something odd going on here.
Another wrinkle is that, once you've clicked the tab and closed it
once, it opens properly from the Project drawer. But not from the
Finder or File:Open or the "Edit in TextMate" command.
(Yes, I am OCD about checking things like this out, why do you ask?)
I thought this was just for items in the TemporaryItems folder. But,
it seems, I was wrong about that. I dragged a .safari file to the
desktop and tried to open from there. No dice. Same odd multiple-item
behavior.
### The Real Problem ###
The loss of "Edit in TextMate" from the browser is, for me, bad
enough. I have tasted the "real text editor for the browser" crack,
and I'm hooked.
But what really gets me is that this started with .php files, in
Transmit. And I can't open .php files at all.
I first edited a .php file remotely in Transmit, off my SFTP server.
Saved the contents, got a system beep, closed it. Totally normal,
except that after that, .php files broke.
Same behavior as above: I try double-clicking a .php file in the
Finder, I get TextMate open and nothing else; no document window,
nothing. Multiple .php files = a new project with multiple files in
the drawer. Clicking one gets a blank tab. Clicking the tab shows the
file.
Now, I _can_ edit non-php files remotely in Transmit. HTML works
fine. Python works fine. But no .php
Naturally, I spend most of my remote time editing .php files these
days. :/
I'd prefer not to have to totally nuke TextMate, but I would really
dearly love to have a functional text editor.
Thanks in advance.
Cheers,
--
Josh DiMauro
josh(a)metacarpal.net
http://blog.metacarpal.net
All my troubles with TextMate seem to do with language grammars. Here's
another issue I can't work out on my own...
I'm trying to add " case 'something': " to the Symbol List in the PHP
language grammer. I've added the following pattern:
{ name = 'meta.symbol-list.php';
match = "\bcase\s+[^:]+:";
},
And after also adding a showInSymbolList preference item it does place
all case items into the symbol list. But the unfortunate side effect is
that the text is now not in the keyword.control.php scope, so has no
syntax highlighting.
How to give more than one scope name to a pattern? I don't want to
include ALL the matches for keyword.control.php in my symbol list.
Thanks, Quinn
Hi all,
Recent user of TextMate... I've downloaded the latest bundles via
subversion and have noticed a problem with the vb.asp.net bundle.
If I try to open an .asp file, which is not a .NET file, just plain
asp, there are errors generated in the Console:
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
TextMate: zero width match (swallow pattern) {
begin = "\\(";
"begin_nfa" = <058c1720 >;
end = "\\)";
"end_nfa" = <006192d0 >;
name = "meta.round-brackets";
patterns = ({include = "source.asp.vb.net"; });
swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)";
"swallow_nfa" = <04ed1cb0 >;
}
...about 39 times. I'm not sure if it corresponds to anything in my
.asp file. It's a rather simple file.
Also, if I create a new HTML file using the New from Template -> HTML
command, and I try to insert a <script> tag in the header, TextMate
will make an error sound, and for each key I try to type within the
script tags, the error "ding" sounds. In the Console, many errors like
this are shown:
2006-03-18 22:00:22.896 TextMate[16514] didn't find rule named
source.js.bracketed
2006-03-18 22:00:22.898 TextMate[16514] didn't find rule source.js.bracketed
To get rid of the errors, I deleted the vb.net bundle (I don't do
.NET, so no great loss), but I thought I'd report it.
I suppose I should send this off to support too..
Thanks.
Hey all,
today i've discovered may be a prob with file encoding (???) over
a .txt file.
my pref setup is tuned to UTF-8 and a text file edited by TextMate
was MacOS Roman, something to avoid definitely...
then, using another text editor i've converted this file to UTF-8 and
discovered again that after having edited this file with TextMate the
file becomes again in MacOS Roman...
the symtom is that TextEdit (also setup default to UTF-8) is unable
to open the file.
did other get about the same prob ???
Yvon
I'm helping a group that I consult with in customizing TextMate for
their PHP development.
They have a library of functions within their company that they want
to have syntax-highlighted, similar to the built-in PHP functions.
I accomplished this by creating a custom bundle, making a scope for
their functions and adding the appropriate functions to the patterns
section of the new language file.
My problem is this: In order to get this new scope included with PHP
files, I modified the default PHP.tmbundle with
{ include = 'source.php.ccb'; },
This works great, everything highlights. *But*, now this is a custom
PHP bundle, and any updates to the default will be masked, until the
new default is manually changed.
Is there any way that I can "inject" my new scope into the PHP bundle
without modifying the PHP bundle itself? I tried adding another
language to my custom bundle, and just putting the include line in
for the source.php scope. This disabled all the other PHP functionality.
Thanks for the help,
Ken Scott