Skip to content
Fossil Changes To Extending Fossil’s Wiki
Login

Changes To Extending Fossil’s Wiki

Changes to "Extending Fossil's Wiki" between 2009-05-09 07:59:26 and 2009-09-23 08:59:35

1
2
3
4
5
6

7
8
9
10
11
12
13

14
15
16
17

18
19
20

21
22
23

24
25

26
27
28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
43

44
45
46
47
48
49
50
51
52
53

54
55

56
57

58
59


1
2
3



4
5
6
7
8
9


10


11

12
13
14

15

16

17


18

19





20
21

22
23

24


25
26

27
28
29
30
31
32
33
34
35
36

37


38


39


40
41



-
-
-
+





-
-
+
-
-

-
+


-
+
-

-
+
-
-
+
-

-
-
-
-
-


-
+

-

-
-


-
+









-
+
-
-
+
-
-
+
-
-
+
+
<h2>Creole Parser</h2>

<hr>
<b><i>Robert says:</i></b>

I have started a [/timeline?t=creole|creole] branch to:
A [/timeline?t=creole|creole] branch has been started by user Robert to:

  1.  Develop a Creole 1.0 compatible wiki parser.
  2.  Explore wiki parser options.
  3.  Develop a standard interface for providing parser extensions.

A live demo of this branch is temporarily available [http://pytrash.co.uk/cgi-bin/CreoleInFossil|here].

A live demo of this branch is available [http://pytrash.users.sourceforge.net/cgi-bin/creole|here].
At the moment I am using two macros <tt>&lt;&lt;creole>> 
&lt;&lt;fossil>></tt> to switch between standard fossil wiki markukp and creole.

Fossil wiki ignores <tt>&lt;&lt;fossil>></tt>, but the creole parser uses it to
Two macros are used to switch between creole markukp and standard fossil markup: <tt>&lt;&lt;creole>></tt> and <tt>&lt;&lt;fossil>></tt>. Fossil wiki ignores <tt>&lt;&lt;fossil>></tt>, but the creole parser uses it to
switch back to fossil.

The 'append to wiki page function' uses this to ensure that any extensions are closed
The 'append to wiki page function' uses this to ensure that any extensions are closed and the fossil wiki parser is back in charge before making any additions. <tt>&lt;&lt;creole>></tt> can be used in the added text to get creole markup.
and the fossil wiki parser is back in charge before making any additions.

At the moment the <tt>&lt;&lt;creole>> markup can only be included while editing or appending
At the moment the <tt>&lt;&lt;creole>></tt> markup can only be included while editing or appending
to wiki pages. I hope to extend this to Tickets as well. 

to wiki pages, not for Tickets. 
<h3>&lt;&lt;code>></h3>

I plan on adding a &lt;&lt;code>> / &lt;&lt;code>> extension which will wrap code in such a way
that the code can easily be colorized with a javascript colorizer  as per
[/wiki?name=Cookbook#source-hilight|Cookbook:SourceHighlight].
The trick here is to make sure that the code displays reasonably if no javascript is availiable;
not so easy as it sounds ;)

<hr>
<h2>Other Wiki Enhancements</h2>
<h2>Other Suggested Wiki 'Enhancements'</h2>
<hr>
<b><i>Robert says:</i></b>

I am considering working on the following areas.

<h3>1.  Hierarchical namespaces for wiki pages</h3>

This is not as drastic as it sounds, the wiki pages would still be a flat table
This is not as drastic as it sounds, the wiki pages could still be a flat table
as they are now but their name would be interpreted to provide the illusion of
a hierarchy.

  1.  page names ending in '/' would be banned.
  2.  In page listings, page names would be split on '/' and
      displayed as lists of lists
  3.  When a link such as <b>./test1</b> is encountered it will
      be converted into the full name of the current page with /test1 appended.
      

<h3>2.  Colorized code macro</h3>
<h3>2.  Wiki diffs.</h3>

A &lt;&lt;code>> / &lt;&lt;code>> macro could be used to wrap code in such a way
The history list would provide a way of selecting versions to be diffed, the diffs would
(initially at least) be displayed using the javascript
that the code can easily be colorized with a javascript colorizer  as per
[http://code.google.com/p/google-diff-match-patch/|Diff, Match and Patch Library]

[/wiki?name=Cookbook#source-hilight|Cookbook:SourceHighlight].
The trick here is to make sure that the code displays reasonably if no javascript is availiable.