It's better when it's simple

User Tools

Site Tools


Src Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin Includes a source uploaded file using the GeSHi highlighter

Last updated on

Similar to source

Tagged with code, file, include, syntaxhighlight

By DenisVS


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.


A simple sample:

{{src -f file.php}}

Full format:

{{src -f :windows:cmd:check_app.cmd -l cmd -e CP866 -p 4:12}}


Basic Unix-like syntax:

{{src -param1 value1 -param2 value2}}

-param can be one of this:

  • -f — path to file in wiki format. If basename present only, default search in current namespace.
  • -l — language, compatible with GeSHi highlighter. E.g. “php”, “cpp”, “java”.
  • -e — source file encoding, compatible with PHP. E.g. CP866, CP1251.
  • -p — position in start:end format as line numbers.

New toolbar button

Src icon in toolbar


Any problems, bugs or improvements should be posted here.

NOTE: If someone find a critical incompatibility, please notify me via E-mail with the name of the plug-in in the subject, so I will be much faster to reply and solve the issues. Thank you!

plugin/src.txt · Last modified: 2020-02-17 07:00 by Aleksandr