DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:textinsert

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
Next revisionBoth sides next revision
plugin:textinsert [2019-10-18 23:58] – [textinsert Plugin] turnermmplugin:textinsert [2019-12-11 22:24] – [Macro Inclusions] turnermm
Line 1: Line 1:
-====== textinsert Plugin ======+====== TextInsert Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 13: Line 13:
 tags       : replace, macro, entities, entity tags       : replace, macro, entities, entity
  
-downloadurl: https://github.com/turnermm/TextInsert/archive/js_file.zip+downloadurl: https://github.com/turnermm/TextInsert/zipball/master
 bugtracker : https://github.com/turnermm/TextInsert/issues bugtracker : https://github.com/turnermm/TextInsert/issues
-sourcerepo : https://github.com/turnermm/TextInsert/+sourcerepo : https://github.com/turnermm/TextInsert
 donationurl: http://mturner.org/userfiles/donate.php  donationurl: http://mturner.org/userfiles/donate.php 
 ---- ----
Line 33: Line 33:
   All Roads Lead to "Here" except for the ones which don't   All Roads Lead to "Here" except for the ones which don't
  
-The textinsert plugin will allow you to create macros for extended texts. You can create paragraph length texts with HTML markup which have to be repeated, for instance, as instructions at the tops of pages.  If you want the HTML to be rendered as such, then the macro name must have the _HTML suffix: +The textinsert plugin will allow you to create macros for extended texts. You can create paragraph length texts with HTML markup which has to be repeated on multiple pages.  If you want the HTML to be rendered as such, then the macro name must have the _HTML suffix: 
  
   Macro_HTML       Macro_HTML    
Line 41: Line 41:
 ==== Macro Inclusions ==== ==== Macro Inclusions ====
  
-Some of the functionality of this plugin at its simplest can be implemented with DokuWiki's own entities facility: [[:entities]]. But for complex substitutions and for control over where and how substitutions are made, textinsert offers a wide variety of solutions and techniques. +Some of the functionality of this plugin at its simplest can be implemented with DokuWiki's own entities facility: [[:entities]]. But for complex substitutions and for control over where and how substitutions are made, Textinsert offers a wide variety of solutions and techniques. 
  
 One advantage of TextInsert comes when dealing with extended blocks of text and with its ability to include other macros inside the primary macro definition. That is, it can accept: One advantage of TextInsert comes when dealing with extended blocks of text and with its ability to include other macros inside the primary macro definition. That is, it can accept:
Line 48: Line 48:
   MACRO_2  a second macro   MACRO_2  a second macro
  
-The result with syntax #@MACRO_1@# is:+The result of using ''#@MACRO_1@#'' is:
   This macro can include a second macro inside it.   This macro can include a second macro inside it.
  
plugin/textinsert.txt · Last modified: 2022-08-30 01:16 by 82.64.33.11

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