DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tabtables

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:tabtables [2011-07-27 07:51] – [Download and Installation] 114.80.133.7plugin:tabtables [2023-10-30 22:17] (current) Klap-in
Line 7: Line 7:
 type       : Action type       : Action
 lastupdate : 2010-10-04 lastupdate : 2010-10-04
-compatible : 2009-02-14b2009-12-25c (not tested on earlier versions)+compatible : !HogfatherLemming
 tags       : tables tags       : tables
  
Line 15: Line 15:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
   * [[http://projects.nihongoresources.com/downloadables/plugin-tabtables.tar.gz|tar.gz format (3k)]]   * [[http://projects.nihongoresources.com/downloadables/plugin-tabtables.tar.gz|tar.gz format (3k)]]
  
-To install the plugin manually, download the source to your plugin folder, ''lib/plugins'', and extract its contents.  That will create a new plugin folder, ''lib/plugins/tabtables'', containing a single file, action.php -- The plugin is now installed.  
 ===== Details ===== ===== Details =====
  
Line 95: Line 94:
 ===== This is an action plugin, not a syntax plugin ===== ===== This is an action plugin, not a syntax plugin =====
  
-Despite the function of this plugin being syntactical, the job it has to do cannot be do with a regular expression, and so is implemented as an action plugin, instead.+Despite the function of this plugin being syntactical, the job it has to do cannot be done with a regular expression, and so is implemented as an action plugin, instead.
  
 This means that the action is performed before the standard wiki syntax translation (including all syntax plugins) take effect. A consequence of this is that lines that start with tabs are translated to wikisymbols. Since processing is per line, the plugin will not convert anything that's in %%<code>%%, %%<file>%% and %%<nowiki>%% blocks **unless these blocks are opened and closed on the same line**. This means that the action is performed before the standard wiki syntax translation (including all syntax plugins) take effect. A consequence of this is that lines that start with tabs are translated to wikisymbols. Since processing is per line, the plugin will not convert anything that's in %%<code>%%, %%<file>%% and %%<nowiki>%% blocks **unless these blocks are opened and closed on the same line**.
Line 110: Line 109:
  
 ===== Bugs ===== ===== Bugs =====
 +==== PHP 7.0 compatibility ====
 +This plugin uses the //split// function that is not available in PHP7.0. To fix you must replace line 165 in action.php (that contains //split//) with:
  
 +  $cells = count(preg_split('/\t/',$original[0]));
 ==== 2009-10-02 ==== ==== 2009-10-02 ====
  
Line 181: Line 183:
  * Preprocesses the user's written data, by hooking into the text parser at the preprocessing point  * Preprocesses the user's written data, by hooking into the text parser at the preprocessing point
  */  */
- function register(&$controller) { + function register(Doku_Event_Handler $controller) { 
  $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE', $this, '_tablify');  $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE', $this, '_tablify');
  $controller->register_hook('PARSER_HANDLER_DONE','BEFORE', $this, '_fixsecedit');  $controller->register_hook('PARSER_HANDLER_DONE','BEFORE', $this, '_fixsecedit');
plugin/tabtables.1311745895.txt.gz · Last modified: 2011-07-27 07:51 by 114.80.133.7

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