plugin:xterm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:xterm [2009-10-06 10:59] – tag cleanup laynee | plugin:xterm [2022-07-30 00:18] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== xterm plugin | + | ====== xterm Plugin |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : tom_trenker@yahoo.com | email : tom_trenker@yahoo.com | ||
type : syntax | type : syntax | ||
lastupdate : 2006-08-26 | lastupdate : 2006-08-26 | ||
- | compatible : | + | compatible : Hogfather |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : code, shell, highlight, syntax | + | tags : |
+ | |||
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img : | ||
---- | ---- | ||
- | |||
===== Description ===== | ===== Description ===== | ||
- | This plugin is intended to allow users to easily document the output of x-terminals | + | |
- | by cutting and pasting directly to the the wiki edit window, without adding line feeds. | + | This plugin is intended to allow users to easily document the output of x-terminals by cutting and pasting directly to the the wiki edit window, without adding line feeds. |
DokuWiki formatting options (bold, italic, etc...) can be applied to the text. | DokuWiki formatting options (bold, italic, etc...) can be applied to the text. | ||
Line 32: | Line 38: | ||
===== CascadingStyleSheet ===== | ===== CascadingStyleSheet ===== | ||
+ | |||
To show the xterm text a CSS class needs to be defined. Add the following CSS to a new file ''/ | To show the xterm text a CSS class needs to be defined. Add the following CSS to a new file ''/ | ||
- | <code css> | + | < |
.xterm { | .xterm { | ||
font-family: | font-family: | ||
Line 40: | Line 47: | ||
} | } | ||
</ | </ | ||
- | |||
===== Plugin ===== | ===== Plugin ===== | ||
+ | |||
Put the following PHP file in / | Put the following PHP file in / | ||
- | <code php> | + | < |
<?php | <?php | ||
/** | /** | ||
Line 113: | Line 120: | ||
*/ | */ | ||
function connectTo($mode) { | function connectTo($mode) { | ||
- | $this-> | + | $this-> |
/* $this-> | /* $this-> | ||
} | } | ||
function postConnect() { | function postConnect() { | ||
- | $this-> | + | $this-> |
/* $this-> | /* $this-> | ||
} | } | ||
Line 163: | Line 170: | ||
?> | ?> | ||
- | |||
</ | </ | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
* This is my first attempt at a DokuWiki plugin, and although it works for fine for my purposes, I'm sure it could be written more cleanly. Please feel free to comment or point out my errors.[[tom_trenker@yahoo.com | Tom Trenker]] | * This is my first attempt at a DokuWiki plugin, and although it works for fine for my purposes, I'm sure it could be written more cleanly. Please feel free to comment or point out my errors.[[tom_trenker@yahoo.com | Tom Trenker]] | ||
Line 249: | Line 256: | ||
Best regards, \\ | Best regards, \\ | ||
Gürkan (have a look at our [[http:// | Gürkan (have a look at our [[http:// | ||
+ | |||
+ | ---- | ||
+ | ===== Compatibility ===== | ||
+ | |||
+ | To get compatibility with 2020-07-29 " | ||
+ | |||
+ | <code diff> | ||
+ | --- lib/ | ||
+ | +++ lib/ | ||
+ | @@ -78,7 +78,8 @@ | ||
+ | /** | ||
+ | * Handle the match | ||
+ | */ | ||
+ | - function handle($match, | ||
+ | + /* function handle($match, | ||
+ | + function handle($match, | ||
+ | | ||
+ | case DOKU_LEXER_ENTER : | ||
+ | | ||
+ | @@ -97,7 +98,8 @@ | ||
+ | /** | ||
+ | * Create output | ||
+ | */ | ||
+ | - function render($mode, | ||
+ | + /* function render($mode, | ||
+ | + function render($mode, | ||
+ | | ||
+ | if ($data[1] == DOKU_LEXER_ENTER){ | ||
+ | | ||
+ | </ | ||
+ | --- [[user> |
plugin/xterm.1254819593.txt.gz · Last modified: 2009-10-06 10:59 by laynee