plugin:src
Table of Contents
Src Plugin
Compatible with DokuWiki
2017-02-19 "Frusterick Manners"
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to displayfile, showfile, source
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 -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
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: 2020-02-17 07:00 by Aleksandr