Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: TextilePHP -- port of Choate's "Textile 2" available
Bump! Did you ever find a fix to the ignoring of TXP tags, greenrift?
Offline
#50 2004-12-02 15:47:48
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: TextilePHP -- port of Choate's "Textile 2" available
For me there’s really no way to implement this until Textpattern tags (and plugin tags) are recognized and dealt with. I’m pretty interested in seeing if this is fixable.
Alternatively, might it be possible to rewrite Textile 2 along the lines of what Dean’s Textile class (the easy to read one ;-)) does? Maybe there’s a middle road somewhere.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
It would take quite a lot of time to rewrite it to be more like Dean’s textile.
I think I have a way of making Textile2 ignore the TXP tags and then replace them after everything’s been processed.
Offline
#52 2004-12-02 16:06:30
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: TextilePHP -- port of Choate's "Textile 2" available
The other question I had after reading the Textile 2 documentation, are the differences between Textile and Textile 2 ever completely documented somewhere that you know of? (i.e. “Changed symbol x to symbol y. Fixed processing of symbol z. Added new symbol m.” etc?) Brad actually wrote out a pretty complete spec for Textile 2, but I had trouble finding a spec for Textile 1 so I’m not even sure of everything 1 is capable of.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I think I found an error in the way your plugin parses text
([underscore]note[underscore] this is a test)
should produce:
(note this is a test)
but in your plugin, the underscores remain instead of being converted to em tags
Last edited by bleveck (2005-01-20 00:54:56)
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I also hacked TextilePHP for use with Textpattern. My changes are less involved (i.e. they use the TextilePHP implementation pretty much unchanged), and allow for insertion of custom macros.
I did use greenrift’s suggestion for making the Textile processor pluggable, but opted for a simpler modification to their Textile class.
Details here
‘Waste of a good apple.’ – Samwise Gamgee
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
Is this working for rc3? The link for greenrifts article is not working. If anyone has a working copy I would love to get one in the mail :)
Thanks!
Last edited by soulship (2005-05-22 01:33:56)
Offline
#56 2005-06-19 03:05:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: TextilePHP -- port of Choate's "Textile 2" available
bump
Last edited by Mary (2005-06-19 03:05:40)
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I have a copy Mary, but it’s not working with the latest revisions. In fact it was looking quite ugly on one install.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I had given up on Textile way back when because it was horrendous at dealing with code samples (ie. disabling textile did not work too well). Anyway, I just started a new blog on TXP 4.0.1 and was following the instructions for greenrift’s hack from textpattern.net, but ran into some issues. Furthermore, greenrift’s link is gone so there’s no good starting point. I also noticed that the mod is a tad outdated in general and perhaps unclear to non-php-experts.
Additionally, I want PHP syntax coloring for the blog I’m developing. I’ve also just emailed Jim Riggs about whether he wants my modifications integrated into his development tree or if I should host them on my own.
[url=“http://templation.websaviour.com/”]Templation • Design Management System[/url]
Offline
#59 2005-10-04 07:58:18
- davidm
- Member
- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: TextilePHP -- port of Choate's "Textile 2" available
jiblet, I don’t know if this fit into Textile as such. Wouldn’t a Geshi plugin be the way to go ?
Maybe a plugin request would do it, many coders needing this kind of features…
Edit : made a quick search and you’ll be happy to know that there are no less than 2 plugins :
krl_geshiSyntaxHighlight
and jdt_geshi_code
:-)
Last edited by davidm (2005-10-04 08:00:59)
.: Retired :.
Offline