(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-52) was last changed on 17-Sep-2008 11:58 by spir  

This page was created on 31-Aug-2006 10:37 by JanneJalkanen

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 74 added 14 lines
----
Preformatted text is important for me, and is turning out to be quite tricky for a variety of reasons.
First, I need to handle inline comment enclosed in curly braces (this is a common notation in set theory, like {A, B}). So if I have four open curlies followed by four closes, how do I handle that? One provisional solution I'm considering is associating the extra close curlies with the ''inside'' of the span, so the regex for the closing markup is three closing curlies not followed by a fourth: {{\}\}\}(?!\})}} in Python syntax, for the coders out there. This would also provide an escape for three or more closing curlies inside a span: just follow those with three closing curlies followed by three opening ones, to open a new span.
Second, the 0.3 spec seems to indicate that wiki markup is processed inside the inline preformatted element. That would be a problem, because there's all kinds of stuff that might go in the tag, some of which might look like markup. Block elements clearly do not have their markup processed.
In any case, even if no wiki markup were allowed inside preformatted inline spans, it would be possible to get the bold preformatted effect by reversing the nesting of the markup, putting the bold on the outside and the pre on the inside (as a reminder of how tricky this is, I was not able to get a sample to render correctly in this Wiki engine).
Third, I'm currently using backslash to escape wiki markup (something often done with a <nowiki> tag). This will conflict with the proposed {{\}}{{\}} syntax for linebreaks. My current inclination is to remove it entirely, but that leaves me with no good way to indicate nowiki outside monospaced spans. A workable hack is to intersperse empty preformatted spans to break up what would otherwise be interpreted as markup.
-- [Raph Levien] 31 Dec 2006
Version Date Modified Size Author Changes ... Change note
52 17-Sep-2008 11:58 11.106 kB spir to previous
51 17-Sep-2008 11:53 11.019 kB spir to previous | to last
50 15-Sep-2008 02:21 10.995 kB spir to previous | to last
49 15-Sep-2008 02:21 10.993 kB spir to previous | to last
48 15-Sep-2008 02:17 10.98 kB spir to previous | to last
47 26-Sep-2007 09:06 9.405 kB ChuckSmith to previous | to last restore
46 26-Sep-2007 00:56 9.425 kB 219.138.204.162 to previous | to last
45 05-May-2007 20:05 9.405 kB RadomirDopieralski to previous | to last artist's decision
44 05-May-2007 14:09 9.222 kB ChristophSauer to previous | to last should nowiki linewrap?
43 11-Feb-2007 23:52 8.985 kB null to previous | to last Agree to separate preformatted and monospace
42 11-Feb-2007 14:27 8.56 kB RadomirDopieralski to previous | to last against escape characters
41 11-Feb-2007 09:23 7.131 kB MicheleTomaiuolo to previous | to last escape char
« This page (revision-52) was last changed on 17-Sep-2008 11:58 by spir