diff options
author | xue <> | 2006-04-15 14:35:46 +0000 |
---|---|---|
committer | xue <> | 2006-04-15 14:35:46 +0000 |
commit | 70944795827cffd1bd5a27a9c4a99eb1434f905f (patch) | |
tree | 8c77df484074d8a104a4646a4e2fa6c051324ed4 /buildscripts/texbuilder/build.php | |
parent | 3ba2c4fbc3a5e07d3f51dc2a89e9eed24b9f2a16 (diff) |
Merge from branch 3.0 till 913.
Diffstat (limited to 'buildscripts/texbuilder/build.php')
-rw-r--r-- | buildscripts/texbuilder/build.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php index d1d6cac5..7395406c 100644 --- a/buildscripts/texbuilder/build.php +++ b/buildscripts/texbuilder/build.php @@ -202,6 +202,7 @@ function parse_html($page,$html) $html = preg_replace('/<\/com:TTextHighlighter>/', '`2`', $html);
$html = preg_replace_callback('/(`1`)([^`]*)(`2`)/m', 'escape_verbatim', $html);
$html = preg_replace_callback('/(<div class="source">)([^<]*)(<\/div>)/', 'escape_verbatim', $html);
+ $html = preg_replace_callback('/(<pre>)([^<]*)(<\/pre>)/', 'escape_verbatim', $html);
//<code>
$html = preg_replace_callback('/<code>([^<]*)<\/code>/', 'escape_verb', $html);
@@ -210,7 +211,11 @@ function parse_html($page,$html) //runbar
$html = preg_replace('/<com:RunBar\s+PagePath="([^"]*)"\s+\/>/',
- 'Try, \href{http://www.pradosoft.com/demos/quickstart/index.php?page=$1}{$1}', $html);
+ '\href{http://www.pradosoft.com/demos/quickstart/index.php?page=$1}{$1 Demo}', $html);
+
+ //DocLink
+ $html = preg_replace('/<com:DocLink\s+ClassPath="([^"]*)[.]([^.]*)"\s+\/>/',
+ '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$1.$2 API Reference}', $html);
//text modifiers
$html = preg_replace('/<b>([^<]*)<\/b>/', '\textbf{$1}', $html);
|