summaryrefslogtreecommitdiffstats
path: root/plugins/55/wrap/syntax/divwrap.php
diff options
context:
space:
mode:
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>';
+
+}
+