summaryrefslogtreecommitdiffstats
path: root/plugins/55/wrap/syntax/divwrap.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-01 20:45:31 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-01 22:18:39 +0100
commit1ae6b3d4a2c6547d7582fab303e79fa8c4cd7632 (patch)
tree4e23c2ec77ad5d9f7cf3bb7cf9a2a26bf096878f /plugins/55/wrap/syntax/divwrap.php
parentAdding wrap makefile. (diff)
downloaddokuwiki-plugins-extra-tmp-new-plugins.tar.xz
dokuwiki-plugins-extra-tmp-new-plugins.zip
Adding wrap version 2023-08-13 (63b6c01).tmp-new-plugins
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'plugins/55/wrap/syntax/divwrap.php')
-rw-r--r--plugins/55/wrap/syntax/divwrap.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/55/wrap/syntax/divwrap.php b/plugins/55/wrap/syntax/divwrap.php
new file mode 100644
index 0000000..7aa88ae
--- /dev/null
+++ b/plugins/55/wrap/syntax/divwrap.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Alternate div syntax component for the wrap plugin
+ *
+ * Defines <WRAP> ... </WRAP> syntax
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Anika Henke <anika@selfthinker.org>
+ */
+
+class syntax_plugin_wrap_divwrap extends syntax_plugin_wrap_div {
+
+ protected $special_pattern = '<WRAP\b[^>\r\n]*?/>';
+ protected $entry_pattern = '<WRAP\b.*?>(?=.*?</WRAP>)';
+ protected $exit_pattern = '</WRAP>';
+
+}
+