Difference between revisions of "Dokuwiki"

From ThorstensHome
Jump to: navigation, search
(program)
 
(30 intermediate revisions by one user not shown)
Line 1: Line 1:
This is a little patch for dokuwiki to allow h6 headings.
+
This page is here for historic reasons. You can browse through its versions by selecting the tab "history". The page used to describe how I adapt Dokuwiki for my needs, but I can do this now entirely using the [[mediasyntax]] plugin for dokuwiki.  
  
<pre>
+
= Where do you want to go? =
/srv/www/htdocs/dokuwiki/inc/parser # diff -rup parser-org.php parser.php
+
* you want to install dokuwiki => go to [http://linuxintro.org/wiki/dokuwiki LinuxIntro]
--- parser-org.php     2009-10-20 15:49:57.000000000 +0200
+
* you want to learn more about the mediasyntax plugin => go to [[mediasyntax]]
+++ parser.php 2009-10-20 15:48:25.000000000 +0200
+
* you want to help developing the mediasyntax plugin => go to [[developing mediasyntax]]
@@ -223,7 +223,7 @@ class Doku_Parser_Mode_header extends Do
+
 
    function preConnect() {
+
= program =
        //we're not picky about the closing ones, two are enough
+
 
        $this->Lexer->addSpecialPattern(
+
== editsections ==
-                           '[ \t]*={2,}[^\n]+={2,}[ \t]*(?=\n)',
+
inc/parser/xhtml.php  
+                            '[ \t]*={1,}[^\n]+={1,}[ \t]*(?=\n)',
+
 
                            'base',
+
The header of a section is defined in xhtml's function header().
                            'header'
+
 
                        );
+
xhtml.php contains finishSectionEdit($pos). This creates a line like
</pre>
+
  <!-- EDIT1 SECTION "heading 1"[1-59] -->
 +
 
 +
$this->sectionedits[] filled by inc/parser/xhtml.php's startSectionEdit().
 +
 
 +
html_secedit replaces
 +
<!-- EDIT(\d+) ([A-Z_]+) (?:"([^"]*)" )?\[(\d+-\d*)\] -->
 +
by some text

Latest revision as of 19:01, 10 July 2011

This page is here for historic reasons. You can browse through its versions by selecting the tab "history". The page used to describe how I adapt Dokuwiki for my needs, but I can do this now entirely using the mediasyntax plugin for dokuwiki.

Where do you want to go?

program

editsections

inc/parser/xhtml.php

The header of a section is defined in xhtml's function header().

xhtml.php contains finishSectionEdit($pos). This creates a line like

$this->sectionedits[] filled by inc/parser/xhtml.php's startSectionEdit().

html_secedit replaces by some text