INSTALLATION !!!

Es ist darauf zu achten, dass /dokuwiki chmod 777 bekommt und in /dokuwiki/data die File changes.log angelegt wird. Ansonsten ist es nicht möglich Dokuwiki zu betreiben.

Derzeitige Config:

<?php
/*
 * Dokuwiki's Main Configuration File - Local Settings
 * Auto-generated by config plugin
 * Run for user: blutgerinsel
 * Date: Wed, 01 Nov 2006 15:08:32 +0100
 */
 
$conf['title'] = 'Blutgerinsel Dokus';
$conf['start'] = 'Home';
$conf['lang'] = 'de';
$conf['dmode'] = 0777;
$conf['fmode'] = 0777;
$conf['mailguard'] = 'visible';
$conf['useacl'] = 1;
$conf['autopasswd'] = 0;
$conf['resendpasswd'] = 1;
$conf['superuser'] = 'blutgerinsel';
$conf['userewrite'] = '2';
$conf['defaultgroup']= 'user';
@include(DOKU_CONF.'local.protected.php');
 
// end auto-generated content

Derzeit wurden diese Plugins nachträglich hinzugefügt: Coloured → http://wiki.splitbrain.org/plugin:coloured

* [col red]This is red text[/col]
* [col blue]This is blue text[/col]
* [col green]This is green text[/col]
* [col grey]This is grey text[/col]

Code Replacement Plugin → http://wiki.splitbrain.org/plugin:code

While writing several pages to document some sour­ce code I noticed that it would be help­full if there were line num­bers added au­to­ma­ti­cally when using the <code> tag to high­light the re­spec­tive code fragments. In­ve­sti­ga­ting the un­der­lying GeSHi system1) sho­wed that its line num­be­ring fea­ture was not available for use in Doku­Wiki2). — Hence I wrote this plugin, which re­places and en­han­ces Do­ku­Wiki's builtin <code> fea­ture.

While I was at it I integrated the algorithms of my older Diff plugin as well3) – this way ob­so­le­ting the latter4). — And after some en­ligh­te­ning5) I im­ple­men­ted the op­tion to spe­ci­fy an op­tio­nal hea­der/foo­ter for a code section.

So the abstract markup looks like
<code lang 123 |[fh] text |[sh]>
{code to highlight}
</code>

  • lang“ (if present) specifies the given code's (programming-) language;
  • 123“ (if present) specifies the first number to use when numbering the given code's lines;
  • the first “|“ (if present) delimits the first argument(s) from the remaining ones which are used to produce a header or footer above/below the high­ligh­ted code;
  • a “h“ (for „header“)6) following immediately the pipe cha­rac­ter cau­ses the remaining “text“ to get placed above the code, a “f“ (for „foot“)7) places the “text“ below the code (note that this flag is optional; if omitted it de­faults to “f“);
  • the “text“ is used as-is with the additional benefit of get­ting wrapped by an anchor tag which allows for addressing the code from other pages.
  • the second “|“ (if present) delimits the header/footer text;
  • a “s8) or “h9) (if present) control the code block's initial folding state; for more details see the behaviour section below.
1) which is used by DokuWiki internally for syntax highlighting
2) And for a good reason, I'd say: It produces a bunch of markup that not even va­li­dates.
3) that one as well was written initially to solve problems with the in some respects rather li­mi­ted GeSHi
4) although both plugins will work side by side without disturbing each other
5) by private mail, directing me to think about CSS styling …
6) or “t“ for „top“
7) or “b“ for „bottom“
8) for „show“, the default
9) for „hide“
linuxserver/dokuwiki.txt · Zuletzt geändert: 2011/06/12 19:12 (Externe Bearbeitung)
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki