plugin:camelcase
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:camelcase [2010-10-10 14:55] – downloadurl lupo49 | plugin:camelcase [2018-05-30 21:12] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== CamelCase | + | ====== CamelCase |
---- plugin ---- | ---- plugin ---- | ||
Line 16: | Line 16: | ||
---- | ---- | ||
- | This [[plugin]] replaces the current DokuWiki handlers for %%CamelCase%% markup. It will create a link to a page with underscores between the %%CamelCase%% words. | + | This plugin replaces the current DokuWiki handlers for %%CamelCase%% markup. It will create a link to a page with underscores between the %%CamelCase%% words. |
e.g. | e.g. | ||
Line 25: | Line 25: | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | as described in DokuWiki' | + | as described in DokuWiki' |
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
Plugin sources: [[http:// | Plugin sources: [[http:// | ||
- | Download the source to your plugin folder, '' | ||
- | The folder will contain: | ||
- | syntax.php | ||
- | The plugin is now installed. | ||
===== Details ===== | ===== Details ===== | ||
Line 55: | Line 54: | ||
*/ | */ | ||
- | if(!defined(' | + | if(!defined(' |
- | if(!defined(' | + | |
- | require_once(DOKU_PLUGIN.' | + | |
/** | /** | ||
Line 102: | Line 99: | ||
* Handler to prepare matched data for the rendering process | * Handler to prepare matched data for the rendering process | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
| | ||
preg_match_all('/ | preg_match_all('/ | ||
Line 112: | Line 109: | ||
* Handles the actual output creation. | * Handles the actual output creation. | ||
*/ | */ | ||
- | function render($format, | + | function render($format, |
$renderer-> | $renderer-> | ||
} | } | ||
Line 131: | Line 128: | ||
===== Discussion ===== | ===== Discussion ===== | ||
>This is really nice! I've wanted this feature for a long time for my wiki. | >This is really nice! I've wanted this feature for a long time for my wiki. | ||
+ | ---- | ||
+ | >Thank you for this plugin. Is there a way to prevent selected camel case words becoming a links, such as for ex. using ~ before the word in certain other wikis? |
plugin/camelcase.1286715307.txt.gz · Last modified: 2010-10-10 14:55 by lupo49