plugin:xssnipper
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:xssnipper [2012-01-18 16:41] – [Configuration] 192.100.123.77 | plugin:xssnipper [2024-02-13 06:58] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ---- pluginnews ---- | + | |
- | headline: Plugins by same author | + | |
- | style: sameauthor | + | |
- | ---- | + | |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : taggic@t-online.de | email : taggic@t-online.de | ||
type : syntax | type : syntax | ||
- | lastupdate : 2012-01-18 | + | lastupdate : 2016-06-02 |
- | compatible : 2011-05-25 | + | compatible : Rincewind, Angua |
depends | depends | ||
conflicts | conflicts | ||
Line 23: | Line 19: | ||
---- | ---- | ||
- | ====== Feature Overview | + | ===== Feature Overview ===== |
- | This plugin | + | This is a very small and simple |
- | * code snippets directly from files | + | |
+ | This plugin delivers | ||
+ | * code snippets directly from files or just copy-paste a code block | ||
* code line numbering | * code line numbering | ||
* direct link of commands to online descriptions (e.g. php.net) | * direct link of commands to online descriptions (e.g. php.net) | ||
* downloadable code blocks | * downloadable code blocks | ||
* css supported box style | * css supported box style | ||
+ | * add code buttons to the Editor Toolbar | ||
- | ====== | + | Demo: [[http:// |
- | This is a very small and simple plugin | + | |
- | + | ||
- | __**Syntax: | + | ====== Syntax |
- | The following syntax does apply: // | + | ===== Case 1: Standard code snipped ===== |
+ | The following syntax does apply: // | ||
+ | where // [ code ] // is the snipped you want to show. \\ | ||
+ | |||
+ | __**Syntax | ||
+ | {(xssnipper>, | ||
+ | // 1. check if $xssnipper[' | ||
+ | | ||
+ | msg(' | ||
+ | return false; | ||
+ | } | ||
+ | )} | ||
+ | ===== Case 2: Code snipped from file ===== | ||
+ | The following syntax does apply: // | ||
^Parameter ^Necessity ^ Meaning | | ^Parameter ^Necessity ^ Meaning | | ||
| // | | // | ||
Line 41: | Line 53: | ||
| //[to line]// | | //[to line]// | ||
| //[code language]// | | //[code language]// | ||
- | | //[code block file]// | + | | //[code block file]// |
+ | | // | ||
- | Simply place the following | + | Simply place syntax |
{(xssnipper> | {(xssnipper> | ||
| | ||
Line 51: | Line 65: | ||
{{http:// | {{http:// | ||
- | Live demo examples can be found here: [[http:// | + | FIXME Live demo examples can be found here: [[http:// |
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
- | Refer to [[Plugins|Plugins]] on how to install plugins manually. | + | |
- | Or just [[https:// | + | Alternatively, |
- | :!: **External requirements: | ||
- | * none | ||
==== Changes ==== | ==== Changes ==== | ||
- | {{rss>http:// | + | {{rss>https:// |
==== Configuration ==== | ==== Configuration ==== | ||
Line 74: | Line 85: | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | Please let me know if there is a need to extend the functionality to paste code directly into the page syntax | + | Please let me know if there is a need to extend the functionality to paste code directly into the page syntax |
- | To do so you may use [[http:// | + | To send us your wishes |
===== Sites using this Plugin ===== | ===== Sites using this Plugin ===== | ||
Feel free to add yours here: | Feel free to add yours here: |
plugin/xssnipper.1326901303.txt.gz · Last modified: 2012-01-18 16:41 by 192.100.123.77