This is

as days pass by, by Stuart Langridge

. Here I write about many things. In the past I wrote about other things but the past is past. I write code for people to play with, I write about my life on Twitter, and I write here.

On I wrote Textile comments, on the subject of Uncategorized.

OK, so adpb has said for ages that comments are Textile parsed, and there’s a JavaScript preview. I never released the JS Textile code, but Sam Newman hassled me for it and released it himself, and good on him. It’s been broken here for a while, and I’ve finally got around to fixing it. Moreover, it turns out that comments were never and have never been Textile parsed; the comment preview was not what you got when the comment was posted. For example, links weren’t done, as can be seen on some old posts. That’s now fixed. I think.

Roberto

Nice, very nice! :)

This made me wonder if it would be possible to run PyTextile on the server, and make a XML HTTP Request to generate the preview… perhaps after each paragraph? I don’t think it would be as smooth as this, though.

Roberto

Yep, it’s possible! :-)

I just set a demo on my weblog using the XML HTTP Request to build the preview without reloading the page.

sil

Nice demo :)
I prefer the on-the-fly nature of mine, but PyTextile does have much better support…

Sam Newman

Jeff Minard went and added some support for other constrcts such as support for h and br, as well as fixing some little bugs – I’m not sure if you folded his changes back in or not…

sil

I haven’t, because I haven’t had time. I need to properly release the library, rather than just occasionally linking to it—unless someone else wants to take over maintenance? As long as the API (such as it is) remains the same, I’m happy with it :-)

John

!

Anonymous Coward

thufje wef p dwj efo eo eo

Biotlon

Good+Work%21

Technoscrabble » Blog Archive » Parsing Textile formatting with JavaScript

[...] So, after some Googling, I came across efforts to achieve Textile parsing in JavaScript by these two (see it in action here). [...]

Textile Hub

Timing in textile and fashion industry, plays key role where you make money or lose money..

http://textile-hub.blogspot.com/2011/02/timing-in-textile-and-fashion-industry.html

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.