File: spanwrap.php

package info (click to toggle)
dokuwiki-plugins-extra 20251207-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,644 kB
  • sloc: php: 88,796; javascript: 64,519; makefile: 112; sh: 76; xml: 71
file content (19 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Alternate span 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_spanwrap extends syntax_plugin_wrap_span {

    protected $special_pattern = '<wrap\b[^>\r\n]*?/>';
    protected $entry_pattern   = '<wrap\b.*?>(?=.*?</wrap>)';
    protected $exit_pattern    = '</wrap>';


}