Hello,
I have found very limited XML editing applications that are
affordable for the Mac.
I am wondering if there is a good XML (.xsd, .xml, xhtml, ect) bundle
or even a really nice Theme for reading said XML files?
Thank you!
Having upped my PHP version to 5.2.4 I realized that the Validate
syntax command in the Textmate PHP bundle gets text from both stdout
and stderr. Don't know if it was like that with previous PHP version,
but the fix is simple.
change result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l`
to result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l 2> /dev/null`
in the Validate syntax command
I also found it useful to add a similar command for ZendCodeAnalyzer.
Create a new command with Save: Current document, Input: Entire
document, and Output: Show as tool tip containing this code:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
result = `#{ENV['TM_ZCA'] || 'ZendCodeAnalyzer'} #{ENV['TM_FILEPATH']} 2>&1`
puts result.gsub(/^.*\(line (\d+)\)/, 'line \1')
TextMate.go_to :line => $1 if result =~ /line (\d+)/
In this case we do want both stderr and stdout, but they are in the
wrong order, so 2>&1 fixes that.
Perhaps this is useful for someone.
--
Sven Axelsson
Hi,
I have a first generation Intel Mac, and I never managed to get
pdfsync to work with Textmate and PDFView. I've now updated to Skim
and the latest Textmate, and the situation has got worse! Now if I re-
TeX a document, I'm taken to Skim, but I don't see the latest version
of the document; the only way for me to see this is to close the
window in Skim, and then click "View in Skim" in the Typeset & View
window. pdfsync takes to me Skim, but not to the current position,
and pdfsync from Skim does nothing. Any ideas?
Thanks,
Toby
Howdy;
I found this great HTML to Markdown converter online
http://milianw.de/projects/html2text/
any one have the chops to turn that into a TextMate Command?
I know that's I'd love it, and I'm sure I'm not the only one.
tia
s.i. rosenbaum
Hi,
Is there a way to find or colorize double-byte space that in the
document? I've been using a double-byle language, called Japanese
with TextMate. The problem I encounter every now and then is to
mistakenly type double-byte spaces where they, as they are treated as
strings, are now allowed.
At this time, there's no way to distinguish double-byte spaces and
single-byte spaces in the document window.
I guess there would be a way to find the space by grep and highlight
it adding scope in language grammars. Right? Anybody?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi ,
I encounter problems in installing the R bundle. I followed the steps
in the textmate doc. However, when running :
svn co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle
I obtain the following error message:
svn: Can't convert string from 'UTF-8' to native encoding:
svn: R.tmbundle/Commands/Plots?\226?\128?\166.tmCommand
and when double clicking on the R bundle (in Application Support/
TextMate/Bundles), this error message appears:
The bundle “R.tmbundle” does not contain the required
“info.plist” file (or that file is corrupt) and can therefore not
be installed.
I nevertheless able to install other bundles ...
Any help would be appreciated.
Regards,
Matthieu
Matthieu Dubois
Ph.D. Student
Cognition and Development Lab
Catholic University of Louvain
10, Place Cardinal Mercier
B-1348 Louvain-la-Neuve - Belgium
E-mail: Matthieu.Dubois(a)psp.ucl.ac.be
Web: http://www.code.ucl.ac.be/MatthieuDubois/
On Sep 27, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
>> If I have a C comment such as:
>>
>> /
>> **-------------------------------------------------------------------
>> --------
>> * xxxx
>> *--------------------------------------------------------------------
>> --------
>> */
>>
>> And I paste/type in some code right after this, textmate indents one
>> character. I cant use cmd+{ to correct it because then all the
>> indenting in
>> the block I paste is incorrect.
>
> It does? I tried that in C++ mode, and I don’t seem to get
> additional indent.
It does indeed - and the mode is C++. In the code you pasted you
removed the leading spaces. Try
/**--------
(space)*
(space)*/
Then you will see what I mean.
I posted a file and window captures to my site:
http:://www.uner.com/sample.cpp
http:://www.uner.com/beforepaste.tiff
http:://www.uner.com/afterpaste.tiff
>> On a related note (loosely) the top of the block has a folding
>> symbol next
>> to it in the gutter, but no corresponding symbol at the end of the
>> block.
>> Comment folding would be great, but clicking on the symbol at the
>> start
>> of the block has no effect.
>
> The default grammar is set to fold on /** and stop on **/. So you
> would need to add another * for the stop marker of your comment,
> then it should fold.
>
> E.g.:
>
> /**
> * This comment folds
> **/
>
That does not fold for me either. The problem is the leading space.
So in the file I uploaded, sample.cc, if you take out the leading
space on line 13 then the comment folds.
I created this a while back, but I had forgotten about it until a
recent discussion of Drag Commands.
If you're using the pre-insalled Apache under Mac OS X, the
DocumentRoot is set to `/Library/WebServer/Documents/`. I try to
avoid attachments as much as possible, so I'll usually put a file in
that location and just send people a URL that leads them to it. To
make this easier, I created a Drag Command that applies to any file
in that directory. For example, if I drop /Library/WebServer/
Documents/some.zip in a document, it inserts http://
kendra.oit.gatech.edu/some.zip instead.
It's currently scoped to "text.mail,text.html" and I usually only use
it for e-mail, but perhaps it should be scoped for all "text"?
Anyway, I thought this might be a useful addition to the Mail or Text
bundle.
On a related note, what's the preferred way to say "I thought this
might be a useful addition to the XYZ bundle"? :)
FYI - If you're looking at the command and wondering why all the
gymnastics to get the Fully Qualified Domain Name for the local
machine, it is intended to work in either of these situations:
1. `hostname` returns something appropriate, like "kendra" and
`domainname` returns something appropriate like "oit.gatech.edu".
2. `hostname` erroneously returns the FQDN (like
"kendra.oit.gatech.edu") and `domainname` returns nothing at all.
(For reasons unknown, I think most systems are misconfigured like
this by default.)
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi, this is a patch including a command to generate a graph using the
dot command so you don't need the Graphviz gui program in OS X. You
will need to have the dot command in your system. To do so, compile
graphviz or get it from macports like so :
sudo port install graphviz
see http://en.wikipedia.org/wiki/Graphviz for more information
I've already submitted a similar patch to the maintainer "Torsten
Becker" but I got no response so far so I'd like if you guys could
take care of it.
Thanks
Guillaume Carbonneau
Hi,
First of all thanks for the great product, i love TextMate and the
blogging bundle is really awesome.
I have been playing a bit with the blogging bundle in combination
with my blog and the strictness of the Ruby library forced me to
follow the specs as strict as well. So in some sense that is a good
thing.
However, the XML-RPC API itself kinda sucks and i really have to do
some magic with post id's in order for them both to understand each
other. Luckily the MetaWeblog (and blogger) API allow the post-id's
to be a string.
But, since the blogging bundle is casting the post-id to an INT it is
causing problems when i try to edit a post with a post id that
contains anything besides digits.
I glanced over the code and i do not see any reason for the post_id
to be an INT, i modified line 238 in blogging.rb (self.post_id =
@headers['post'].to_i if @headers['post']) by removing '.to_i' and
now everything is working as expected.
I hope this adjustment will find its way to all happy cutting-edge
TextMate users worldwide ;)
Cheers,
Nicholas Piël