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_kbd extends BBCodeExt_simpletag_plugin_base {
8
9    //function getType() { return 'formatting'; }
10    //function getPType() { return 'normal'; }
11    //function getAllowedTypes() { return array('formatting', 'disabled'); }
12    //function getSort() { return 160; }
13    function connectTo($mode){
14        $this->Lexer->addEntryPattern($this->makepatterns('kbd')[0], $mode, 'plugin_bbcodeextensions_kbd');
15		$this->setHTMLtag('kbd');
16    }
17    function postConnect() {
18		$this->Lexer->addExitPattern($this->makepatterns('kbd')[1] ,'plugin_bbcodeextensions_kbd');
19	}
20
21}
22