Published in Brighton, UK

Clagnut

Preview and pain

I’ve added a preview feature to the blog commenting system. Since applying Textile functionality to comments, it seemed the polite thing to do, especially as the output might not be immediately obvious to the uninitiated.

For the similar reasons, I’ve also changed the CSS so that paragraphs in comments are separated by a line (instead of following directly with an indentation, as in this post [not IE/Win]).

And talking of Textile, I’m struggling to fix a bug with its @ notation. The @ notation wraps code tags around its contents, and displays any contained HTML, rather than rendering it.

The problem occurs when the code fragment begins and/or ends with HTML tags and is exacerbated when the code fragment contains the tag. In both these cases the HTML is rendered instead of displayed.

I've told <a href="http://www.textism.com/">Dean</a> about the bug and he's on to it. However I'm sure that Dean, and other Textile users, would love a hand from someone whose regex is better than mine (hint hint).

3 April 2003

§ Blogging · Clagnut news · PHP/MySQL

3 comments

Comments

  1. 1

    I’ve been trying to hack at this myself. The problem appears to be the reliance on word boundries (b). a possible solution might be to use the same method as used with <i> and <em>.

    William
    5 Apr 2003
    22:28 GMT
  2. 2

    is this a fake cause i got a call yesterday saying that i could be enrolled july 11th and to get online and click the website i got through e mail. well i did and the thing dont work now.. i triewd searching for it and it brought me here. I feel like i was a joke.. it got my hopes up.

    kristy
    20 May 2004
    14:20 GMT
  3. 3

    looking for finacealdocumentfor aiu

    Donny.normore
    3 Jul 2004
    04:39 GMT

Add your comment

Comments are now closed on this post. If you have more to say please contact me directly.

Outside interest

Top Referrers

No referrers yet.