* * @see also: https://www.dokuwiki.org/devel:javascript * * Allow inline JavaScript in DW page. * Make sure that your script embedded inside of CDATA section. * * SYNTAX: * * ... * */ require_once(dirname(__FILE__).'/embedder.php'); class syntax_plugin_inlinejs_embedinline extends syntax_plugin_inlinejs_embedder { public function getType() { // Syntax Type return 'protected'; } public function getPType() { // Paragraph Type return 'normal'; } /** * Connect pattern to lexer */ //protected $mode, $pattern; public function preConnect() { // drop 'syntax_' from class name $this->mode = substr(get_class($this), 7); // syntax pattern $this->pattern[1] = '(?=.*?)'; $this->pattern[4] = ''; } /** * Plugin features */ //protected $code = null; }