Hi All,
is anyone working on a Textpattern language bundle? If so would you mind sharing, regardless of how incomplete it is?
Also has anyone got Textile working for Web Preview pipe-through? I've tried playing with Textile.pm and redcloth, but there's some wrapper script voodoo I'm missing or something. I also can't seem to find a Textile.rb that the Textile bundle refers to
thanks in advance!
peace - oli
PS thanks whoever did Textile!
Saskatoon, a code editor forked from Smultron, had a built-in Textile pipe. It was discontinued but fortunately the source code is still available on its website. You or anyone else might want to check it out if it helps you port that function over to TextMate.
Saskatoon http://saskatoon.sourceforge.net Smultron http://smultron.sourceforge.net
Paul Bissex, the creator of Saskatoon, might be able to help you out as well - http://e-scribe.com
PS thanks whoever did Textile!
Dean Allen is the man. http://www.textism.com
On 1 sept. 05, at 09:18, Oli wrote:
Also has anyone got Textile working for Web Preview pipe-through? I've tried playing with Textile.pm and redcloth, but there's some wrapper script voodoo I'm missing or something. I also can't seem to find a Textile.rb that the Textile bundle refers to
It doesn't work with the RedCloth version installed by gems, you have to edit redcloth file to make it work.
But the easiest is to install RedCloth "manually". You can find it here:http://rubyforge.org/frs/download.php/2896/RedCloth-3.0.3.tar.gz Then, you just pipe thru /usr/local/bin/redcloth.
-- Fred
On 01/09/2005, at 9.18, Oli wrote:
Also has anyone got Textile working for Web Preview pipe-through? I've tried playing with Textile.pm and redcloth, but there's some wrapper script voodoo I'm missing or something. I also can't seem to find a Textile.rb that the Textile bundle refers to
Yes, both textile.pm and RedCloth needs a wrapper script, I'm almost certain that Textile.rb was supposed to be one for the latter, but David Powers forgot to add it (to the textile bundle commit).
I tried to search for a simple textile -> XHTML script/command, but it seems just about everything is created with the goal of being embedded in something else. The closest I got was textile.py [1]. Though I had to change the last line to this (for it to be used as a filter):
print textile(sys.stdin.read(), encoding='utf-8', output='utf-8')
Though as an HTML preview filter it may be of limited use, since converting a single word takes almost a second on my 2.5 GHz G5. But at least it can do textile to XHTML :)
On 01/09/2005, at 9.18, Oli wrote:
Also has anyone got Textile working for Web Preview pipe-through?
To follow up on this, David Powers added RedCloth to the support dir and the Textile.rb wrapper.
So if you have an svn checkout, you can now enter “Textile.rb” in the “Filter through command” text field, and it'll work.
Starting with 1.1b18 this will work out-of-the-box.
On Sep 2, 2005, at 1:49 PM, Allan Odgaard wrote:
To follow up on this, David Powers added RedCloth to the support dir and the Textile.rb wrapper.
Thanks David! You were the person I was wanting to thank in my first email btw ;-) Also thanks Allan for your follow-up. Hopefully I'll be able to do things like "port" stuff one day too... heh.
So if you have an svn checkout, you can now enter “Textile.rb”
Go go mighty svn powers.. and it works. great!
No replies on a Textpattern bundle though .. aah well :-)
peace - oli