1<?php
2if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
3if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
4require_once(DOKU_PLUGIN.'syntax.php');
5require_once(__DIR__. '/../common.php');
6
7class syntax_plugin_bbcodeextensions_del extends BBCodeExt_simpletag_plugin_base {
8
9    //function getType() { return 'disabled'; }
10    //function getPType() { return 'normal'; }
11    //function getAllowedTypes() { return array('formatting', 'disabled'); }
12    //function getSort() { return 140; }
13    function connectTo($mode){
14		$this->settextwraps('~~', '~~');
15		$this->setHTMLtag('del');
16        $this->Lexer->addEntryPattern($this->makepatterns('del')[0], $mode, 'plugin_bbcodeextensions_del');
17    }
18    function postConnect() {
19		$this->Lexer->addExitPattern($this->makepatterns('del')[1] ,'plugin_bbcodeextensions_del');
20	}
21
22}
23