summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorAnika Henke <a.c.henke@arcor.de>2007-05-18 01:32:13 +0200
committerAnika Henke <a.c.henke@arcor.de>2007-05-18 01:32:13 +0200
commit07f89c3c8f7bdf32c835189da7cd6e8393ab8570 (patch)
treee344aa3f8f4dfe35ae9e7142e0cfef573231644b /inc/parser/xhtml.php
parentb27484c2fe1cc1a782f2788b4e3e02f6ef3fa7c8 (diff)
downloadrpg-07f89c3c8f7bdf32c835189da7cd6e8393ab8570.tar.gz
rpg-07f89c3c8f7bdf32c835189da7cd6e8393ab8570.tar.bz2
added block mode for embedded html+php (FS#541) -- same syntax but in capital letters (<HTML>+<PHP>)
darcs-hash:20070517233213-d5083-9dbccf77383575912ad75533ca690302557e0f79.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 102958c9d..827666ef4 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -130,7 +130,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
'type' => 'ul',
'level' => $level-$conf['toptoclevel']+1);
}
- }
+ }
function header($text, $level, $pos) {
@@ -347,6 +347,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
}
+ function phpblock($text) {
+ $this->php($text);
+ }
+
/**
* Insert HTML if allowed
*
@@ -361,6 +365,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
}
+ function htmlblock($text) {
+ $this->html($text);
+ }
+
function preformatted($text) {
$this->doc .= '<pre class="code">' . $this->_xmlEntities($text) . '</pre>'. DOKU_LF;
}