It's better when it's simple

User Tools

Site Tools


Src Plugin

Compatible with DokuWiki

  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes

plugin Includes a source uploaded file using the GeSHi highlighter

Last updated on
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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki