DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:commentsrc

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:commentsrc [2009-10-06 10:12] – tag cleanup layneeplugin:commentsrc [2023-12-21 16:49] (current) – new download url Aleksandr
Line 1: Line 1:
-====== commentsrc plugin ======+====== commentsrc Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: This plugin provides the ability to put comment only visible when you edit the page.+description: This plugin provides the ability to put comment only visible when you edit the page
 author     : iDo author     : iDo
 email      : iDo@woow-fr.com email      : iDo@woow-fr.com
Line 10: Line 10:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : comment, htmlcomment +similar    : comment, htmlcomment, wrap 
-tags       : commentshidden+tags       : annotationshide, comment 
 + 
 +downloadurl: https://trello.com/1/cards/5bc21fba6cae5c27f9810b58/attachments/5bc2205bbf44252d17ada47c/download/commentsrc.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 + 
 +screenshot_img: 
 ---- ----
  
 ===== Syntax ===== ===== Syntax =====
-Just put your comment between !- and -!:+ 
 +Just put your comment between ''!-'' and ''-!'':
  
   !-I love dokuwiki-!   !-I love dokuwiki-!
  
 ===== Install ===== ===== Install =====
-You can install it with [[plugin]] manager => http://dokuplugins.idotech.info/commentsrc.zip \\ + 
-Or just download the .zip and uncompress it in "lib/plugins"+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually
  
 ===== Code ===== ===== Code =====
-lib/plugins/commentsrc/syntax.php : + 
-<code php> +lib/plugins/commentsrc/syntax.php: 
-<?php+<code php syntax.php> 
 +<?php  
    
 if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
Line 47: Line 57:
             'date'   => '14/12/2005',             'date'   => '14/12/2005',
             'name'   => 'commentsrc Plugin',             'name'   => 'commentsrc Plugin',
- 'desc'   => 'Make texte only visible when editing a page', +            'desc'   => 'Make texte only visible when editing a page', 
-            'url'    => 'http://www.dokuwiki.org/plugin:commentsrc',+            'url'    => 'https://www.dokuwiki.org/plugin:commentsrc',
         );         );
     }     }
Line 90: Line 100:
  
 //Setup VIM: ex: et ts=4 enc=utf-8 : //Setup VIM: ex: et ts=4 enc=utf-8 :
-?> 
 </code> </code>
  
Line 155: Line 164:
   !- comment -! Disappearing text !- comment again -!   !- comment -! Disappearing text !- comment again -!
  
-[[comment|Esther's plugin]] is using %%.*?%% which matches "as little as possible". This is (i think) equivalent to Kohei's solution with entrypattern and exitpattern. --- //[[viktro@bigfoot.com|Viktor]] 2006-10-18 13:44//+[[comment|Esther's plugin]] is using %%.*?%% which matches "as little as possible". This is (i think) equivalent to Kohei's solution with entrypattern and exitpattern. --- 2 
 + 
 +---- 
 + 
 +  
 +I patched it (by hand) with Kohei MATSUSHITA's notes (didn't get Esther 'comment' plugin working), and I used %%"[^A-Za-z0-9_-]/\*"%% instead of "/\*" because I noticed some problems with some texts like: "rm /some/folder/*" where '/*' should not be seen as the start of a piece of hidden text; still got some problems with two lines below eachother having only  /* comment */  on them 
 + 
 + --- //[[sgiebels_dokuwiki@pcREM0VEprobleemloos.nl|Sebastiaan Giebels]] 2010-12-10 18:04// 
 + 
 +----
plugin/commentsrc.1254816744.txt.gz · Last modified: 2009-10-06 10:12 by laynee

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