DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:src

Src Plugin

Compatible with DokuWiki

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

plugin Includes a source uploaded file using the GeSHi highlighter

Last updated on
2015-06-17
Provides
Syntax

Similar to source

By DenisVS

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

A simple sample:

{{src -f file.php}}

Full format:

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

Syntax

Basic Unix-like syntax:

{{src -param value -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. Eg. “php”, “cpp”, “java”.
  • -e — Source file encoding, compatible with PHP. Eg. CP866, CP1251.
  • -p — position in start:end format as line numbers.

New toolbar button

Src icon in toolbar

Discussion

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: 2016-01-06 22:41 by Aleksandr