Hi,
I'm working on a set of XHTML/PHP pages and the document header
resides in a separate file. Is there a way to tell TextMate to insert
tags properly, ie. <br /> instead of <br> etc.?
Thanks!
Christian
To: All TextMate Actionscripters.
I'm looking to find a simple "Hello World" downloadable TextMate
project which demonstrates how to configure and compile with MTASC.
Haven't been successful yet with the Help documentation.
Sincerely,
Tony Jacobson
Ratio Interactive
Hey all,
i'm using 'xbel' for some specific xml file and like to know if it's
possible to let TextMate knows the files with extension xbel are xml
files ?
best,
Yvon
I have just tried enabling using Textmate from Apple's Mail
application to get better text editing. Works fine, but one thing I
miss from Mail is that text at different quote levels is coloured
differently. This would seem a simple enough thing to do (I would
have to do a bit of reading up though), but has anyone already done
this?
Dave.
Hi there
I have a non-public Wordpress blog behind a htpasswd
authentification. Is it someway possible to use the blogging bundle
all the same? When trying to fetch the posts, I get the following
errors:
/usr/lib/ruby/1.8/xmlrpc/client.rb:533:in `do_rpc': Authorization
failed. (RuntimeError)
HTTP-Error: 401 Authorization Required from /usr/lib/ruby/1.8/xmlrpc/
client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:547:in `fetch'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.V9d44n:3
Thanks for any help in advance!
Oliver
I've just released BlogMate 0.4 which adds support for reading from
and writing to blogs behind HTTP Basic and Digest authentication.
Also, system keychain support is used for storing/fetching username/
password.
hope some of you can check it out.
http://ditchnet.org/blogmate
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Hi,
I am a new Textmate user, and this is my first post. My initial
interest in Textmate was in using it as a python editor, although as
I learn more about it, I am interested in using it for LaTeX and
Context. The LaTeX bundle is very nice, though the ConTeXt bundle
doesn't seem to have a way to typeset the resulting file (at least as
far as I can see.) I have configured TeXShop to use Textmate as an
external editor---this works, but it is not as nice as working solely
in Textmate.
Is anyone is working on a ConTeXt bundle similar in functionality to
the LaTeX bundle?
Cheers,
-paul
Hi,
I'd link to run a shell command in a bundle and capture the output in
the html window. So I thought scriptmate.rb seems to be a good way to
go, but I am a bit clueless. Running this from the command line gives
me an error.
--------------------------------------------------
#!/usr/bin/env ruby
ENV['TM_SUPPORT_PATH']="/Applications/TextMate.app/Contents/SharedSupport/Support"
$:.unshift ENV['TM_SUPPORT_PATH'] + "/lib"
require 'scriptmate'
cmd_mate("ls")
--------------------------------------------------
nil
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `waitpid': no implicit conversion from nil to integer (TypeError)
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `emit_html'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:16:in `cmd_mate'
from ./parse_texrun.rb:42
And scriptmate.rb looks a bit strange to me:
....
def emit_html
emit_header()
stdout, stderr, stack_dump, pid = @command.run
....
is trying to get 4 parameters from @command.run, but UserCommand#run
only returns 3. A related question: is it possible to get a pid from
popen3?
Patrick
> Looking at the diff, the b was previously a <, so the intent was to
> convert \< to \b (because of a change in the regexp library), but
> accidentally all <’s where converted to b’s.
>
> I have now reverted this part of r976, better late than never :)
Excellent! My first bug report and fix! Most exciting. Please
forgive my enthusiasm; I only came to programming in a serious way
about a year ago. I was 'inspired' to do so by a custom program my
company rolled out that was so astonishingly awful that I felt that I
had to demonstrate that better could be done. So, a year later, with
20+ newly purchased yet well worn O'Reilly titles on my shelf, it's
nice to be able to start contributing back to projects I like.
In addition, I have found another small problem with the Python
bundle - it has to do with the way it scopes 'meta.item-
access.python' sections.
In particular, it gets confused by the end ], and does not recognize
it as 'punctuation.definition.arguments.end.python', although it
recognizes the lead [ correctly as
'punctuation.definition.arguments.start.python'. For instance, put
the following in TextMate as Python, and note the scopes/coloring of
the []'s.
pairing_name = findNextWord(packet[row])[0]
The regexes responsible are below, along with my explanation of the
problem and proposed fix:
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(?=\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
The problem is that the 'meta.item-access.python' begin regex tags a
LOCATION, specifically the location of the beginning of the first
legit Python dotted name followed by a [, thus correctly allowing the
[ itself to be matched within by
'punctuation.definition.arguments.begin.python'. However, the
'meta.item-access.python' end regex tags not the LOCATION of the
end ], but the end ] itself, thus preventing
'punctuation.definition.arguments.end.python' from selecting the
end ] as it should. In addition, the regex for
'punctuation.definition.arguments.end.python', instead of selecting
the end ], selects the LOCATION followed by an end ], which gives it
no characters in its scope!
My proposed fix swaps the two; both the start and end 'meta.item-
access.python' regexes select for LOCATION, and both
'punctuation.definition.arguments.begin.python' and
'punctuation.definition.arguments.end.python' select for the actual
CHARACTERS [ and ]. The code is below, and I have tested that it
properly scopes the Python constructs now.
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(?<=\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
);
},
Hope this is helpful - I am (slowly!) looking through the rest of the
Python language definition to see if there are any other glitches I
can spot. Cheers,
Nick
When connecting to a blog over SSL, various blogging commands (e.g., Fetch Post) will include "warning: peer certificate won't be verified in this SSL session" in their output. Net::HTTP generates this warning when its verify_mode hasn't been set. It then defaults to OpenSSL::SSL::VERIFY_NONE. My patch sets it explicitly to avoid the warning.