(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-71) was last changed on 27-Mar-2008 16:23 by ChristophSauer  

This page was created on 28-Aug-2006 19:09 by Christoph

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 186 added 34 lines
-- Anonymous, 2007-02-05
Just for the record, I remember there was some exotic wiki engine with a pretty neat solution for the //adding a heading above or below problem//. Both with the approach we use, and the reversed one, it's hard to add headings -- on lower or higher level.
The syntax was very similar to that of structured text -- it used headings of different levels underlined with various punctuation characters, like "{{{-+*@#%~^:}}}". The point is, there was no static mapping between the heading level and the character used. The first heading was automatically made into {{{<h1>}}}, and then all the headings underlined with the same character were also rendered as {{{<h1>}}}. The next //differing// heading was made into {{{<h2>}}} and so on. Then, if you wanted to add a heading of higher/lower level than used already, you just used a new underlining character.
Apart from this smart advantage, this approach has also severe disadvantages. Two texts coudn't be easily merged together without getting through them and standarizing the heading markup. You coudn't tell what level of heading you're looking at without scrolling the textarea to the beginning and looking through all the source.
That's why I don't recommend it for Creole. But the solution is still an interesting one. I tested something similar for bullet lists and it worked pretty nice.
-- RadomirDopieralski, 2007-02-05
Its interesting that XHTML 2.0 has the {{{ <section> }}} and {{{ <h> }}} elements which solves this problem neatly. Just unfortunate it was added too late.
-- JaredWilliams, 2007-02-05
You can always approximate it with the wiki script and apropriate {{{<div>}}} and {{{<span>}}} elements. For example, when writing HTML I like to write:
{{{
<div class="section">
<h1>Heading</h1>
<p>The text of the section...</p>
...
</div>
}}}
Remember, that your script can "guess" what level of headings to use very easily -- provided you have beginning and ending tags for the sections, like in XML. Unfortunately, Creole only has markup for the beginning of section, and the ending has to be computed based on the level of heading used. But it seems more human-friendly.
-- RadomirDopieralski, 2007-02-06
Yes, could use the list style logic for headers. Still would have to fix up h//n// elements thou.
-- JaredWilliams, 2007-02-06
Version Date Modified Size Author Changes ... Change note
71 27-Mar-2008 16:23 14.864 kB ChristophSauer to previous restore
70 26-Mar-2008 19:25 0.096 kB 137.164.143.110 to previous | to last xcrbvopqrj
69 07-Mar-2008 00:50 14.864 kB RadomirDopieralski to previous | to last restore
68 06-Mar-2008 21:45 0.094 kB 200.20.63.6 to previous | to last wnjlsilswj
67 26-Sep-2007 09:46 14.864 kB ChuckSmith to previous | to last restore
66 26-Sep-2007 02:00 14.915 kB 194.9.85.141 to previous | to last
65 26-Sep-2007 02:00 14.901 kB 87.101.244.9 to previous | to last
64 26-Sep-2007 01:59 14.887 kB 81.180.65.2 to previous | to last
63 26-Sep-2007 01:59 14.877 kB 81.180.65.2 to previous | to last
62 10-Jul-2007 16:36 14.864 kB ChristophSauer to previous | to last spam
61 10-Jul-2007 15:56 0.41 kB 202.64.112.65 to previous | to last jwstvpmcag
« This page (revision-71) was last changed on 27-Mär-2008 16:23 by ChristophSauer