DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:src

Src Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown

plugin Includes a source uploaded file using the GeSHi highlighter

Last updated on
2017-06-19
Provides
Syntax

Similar to source

By DenisVS

Installation

Search and install the plugin using the Extension Manager. 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. 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

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: 2018-05-28 21:51 by Klap-in