DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:konsole

konsole Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin Konsole look like terminal, with bash syntax highlight

Last updated on
2016-05-15
Provides
Syntax
Repository
Source

Similar to cli, xterm, xterm2

Tagged with formatting, syntaxhighlight, terminal

This is my first published plugin I developed for a website in project, so it could have some bugs, mistakes, but I tried it on two Dokuwiki, and this one seems to work fine.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

User Konsole :

<konsole> ... </konsole>

Root Konsole :

<konsole root> ... </konsole>

There's also a little toolbar :

Change Log

  • 2015-05-15
    • Bootstrap 3 Compatibility Issue
    • Few little corrections
  • 2015-07-25
    • Translations update.
  • 2014-05-16
    • Compatibility check
    • New translations: ja, nl, de (Thanks to translators ;-))
  • 2012-02-01
    • Initial release

ToDo/Wish List

  • Plugin in french and English1), so other translations are welcome ! ;-)
  • Only Linux bash highlighting, DOS commands will be soon available.
  • Ability to add personal keywords.
  • Adding new style for terminal, Windows, MacOS.

Discussion

Would be nice if there was control of the height, I have two commands and it takes up about 50 lines. I rather it have it take 2 lines.
You can change the height in style.css.
Wolud be nice, if heigth and width are dynamic parameters e.g.
<konsole 600 300> ... </konsole>

do you think that is possible?

The wiki syntax works inside the <koncole> tags, can you disable that please?
The wiki syntax inside the <konsole> tags is wonderful, if you want to highlight interaction inside a konsole session or mark some important output.

If you want to disable the wiki syntax, then the konsole plugin should understand and you could use the normal No Formatting wiki syntax, eg. %% or <nowiki>your konsole output</nowiki> inside the <konsole> tags. This should be the same like working with the xterm plugin

Something like:
<konsole>
linux1:~ # **cd /etc**
linux1:/etc # **cat /etc/SuSE-release** %%
SUSE LINUX 10.1 (X86-64)
VERSION = 10.1 %%
linux1:/etc # **ls apache2** <nowiki>
.htpasswd            errors.conf       listen.conf
charset.conv         extra             magic
conf.d               httpd.conf        mime.types
default-server.conf  httpd.conf.local  mod_autoindex-defaults.conf </nowiki>
linux1:/etc #
</konsole>

kirbachkirbach

2012/07/16 16:07

Thanks to kirbachkirbach

for this really nice answer :-)chtilandchtiland
Chtiland

Printing a page does not render correctky the <konsole> tag
I also encountered this problem, this should work by activating “printing background images” in browser options but can't make it work too (Tried Firefox, Chrome and Opera) still investigating ;-)chtilandchtiland
Chtiland

2014/01/03 13:04
1)
Report any mistake ;-)
plugin/konsole.txt · Last modified: 2016-05-15 13:14 by chtiland