DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:xterm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
plugin:xterm [2020-03-01 17:59]
Aleksandr
plugin:xterm [2020-11-23 15:11] (current)
kirbach Compatibility with Hogfather
Line 7: Line 7:
 type       : syntax type       : syntax
 lastupdate : 2006-08-26 lastupdate : 2006-08-26
-compatible :+compatible : hogfather
 depends    : depends    :
 conflicts  : conflicts  :
Line 256: Line 256:
 Best regards, \\ Best regards, \\
 Gürkan (have a look at our [[http://pardususer.de/dokuwiki/doku.php?id=playground:playground#konsolenausgabe|playground]] - there you'll see this design in action :-) ) Gürkan (have a look at our [[http://pardususer.de/dokuwiki/doku.php?id=playground:playground#konsolenausgabe|playground]] - there you'll see this design in action :-) )
 +
 +----
 +===== Compatibility =====
 +
 +To get compatibility with 2020-07-29 "Hogfather" you need to change only the declarations of the functions ''handle'' and ''render'' -> My wiki runs at least error free ;-)
 +
 +<code diff>
 +--- lib/plugins/xterm/syntax.php.save   2020-08-21 16:12:48.530697306 +0200
 ++++ lib/plugins/xterm/syntax.php        2020-11-23 14:49:54.937881868 +0100
 +@@ -78,7 +78,8 @@
 +     /**
 +      * Handle the match
 +      */
 +-    function handle($match, $state, $pos, &$handler){
 ++    /* function handle($match, $state, $pos, &$handler){ */
 ++    function handle($match, $state, $pos, Doku_Handler $handler){
 +         switch ($state) {
 +           case DOKU_LEXER_ENTER :
 +             break;
 +@@ -97,7 +98,8 @@
 +     /**
 +      * Create output
 +      */
 +-    function render($mode, &$renderer, $data) {
 ++    /* function render($mode, &$renderer, $data) { */
 ++    function render($mode, Doku_Renderer $renderer, $data) {
 +         if($mode == 'xhtml'){
 +             if ($data[1] == DOKU_LEXER_ENTER){
 +                 $renderer->doc .= '<pre class="xterm">';       #     <pre><font size=+0>';
 +</code>
 + --- [[user>kirbach|kirbach]] //2020-11-23 15:05//
plugin/xterm.txt · Last modified: 2020-11-23 15:11 by kirbach