DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:src

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:src [2017-06-20 17:10] – [Syntax] DenisVSplugin:src [2020-02-17 07:00] (current) Aleksandr
Line 11: Line 11:
 conflicts  conflicts 
 similar    : source similar    : source
-tags       : +tags       : code, syntaxhighlight, include, file
  
 downloadurl:  http://webdev.d77.in/downloads/src.zip downloadurl:  http://webdev.d77.in/downloads/src.zip
Line 22: Line 22:
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 33: Line 33:
  
   {{src -f :windows:cmd:check_app.cmd -l cmd -e CP866 -p 4:12}}   {{src -f :windows:cmd:check_app.cmd -l cmd -e CP866 -p 4:12}}
- 
  
 ===== Syntax ===== ===== Syntax =====
  
 Basic Unix-like syntax: Basic Unix-like syntax:
-<code>{{src -param value -param2 value2}}</code> 
  
 +  {{src -param1 value1 -param2 value2}}
  
-   +**-param** can be one of this:
-**param** can be one of this:+
  
-  *//-f//    --- path to file in wiki format. If basename present only, default search in current namespace.+  * **-f** --- path to file in wiki format. If basename present only, default search in current namespace
 +  * **-l** --- language, compatible with [[http://qbnz.com/highlighter/|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.
  
-  *//-l// --- language, compatible with [[http://qbnz.com/highlighter/|GeSHi]] highlighter. E.g. "php", "cpp", "java"+===== New toolbar button =====
  
-  *//-e// --- Source file encoding, compatible with PHP. Eg. CP866, CP1251. 
- 
-  *//-p// --- position in start:end format as line numbers. 
- 
-===== New toolbar button ===== 
 {{http://webdev.d77.in/images/screen-src-plugin-toolbar.png|Src icon in toolbar}} {{http://webdev.d77.in/images/screen-src-plugin-toolbar.png|Src icon in toolbar}}
- 
  
 ===== Discussion ===== ===== Discussion =====
Line 61: Line 56:
  
 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! 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.1497971423.txt.gz · Last modified: 2017-06-20 17:10 by DenisVS

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