summaryrefslogtreecommitdiff
path: root/inc/geshi.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-28 22:40:42 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-28 22:40:42 +0200
commit9f830448ee35b709be3c303585a230dfbf8582b3 (patch)
treeaf6325a6007b86b9f00222e1384d2090285f6d9a /inc/geshi.php
parent615a21ede991668743f0550bc03e4d1d091cf912 (diff)
downloadrpg-9f830448ee35b709be3c303585a230dfbf8582b3.tar.gz
rpg-9f830448ee35b709be3c303585a230dfbf8582b3.tar.bz2
GeSHi updated to 1.0.7.1
darcs-hash:20050728204042-7ad00-460f1fd12d7b5dfb1c58518e80ff10ea0aeb046e.gz
Diffstat (limited to 'inc/geshi.php')
-rw-r--r--inc/geshi.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/inc/geshi.php b/inc/geshi.php
index 5e61a44c8..46176ba19 100644
--- a/inc/geshi.php
+++ b/inc/geshi.php
@@ -28,7 +28,7 @@
* @author Nigel McNie <nigel@geshi.org>
* @copyright Copyright &copy; 2004, 2005, Nigel McNie
* @license http://gnu.org/copyleft/gpl.html GNU GPL
- * @version $Id: geshi.php,v 1.9 2005/06/17 10:45:23 oracleshinoda Exp $
+ * @version $Id: geshi.php,v 1.10 2005/07/25 10:42:23 oracleshinoda Exp $
*
*/
@@ -40,7 +40,7 @@
//
/** The version of this GeSHi file */
-define('GESHI_VERSION', '1.0.7');
+define('GESHI_VERSION', '1.0.7.1');
/** For the future (though this may never be realised) */
define('GESHI_OUTPUT_HTML', 0);
@@ -1979,14 +1979,14 @@ class GeSHi
$keyword = quotemeta($keyword);
if ($this->language_data['CASE_SENSITIVE'][$k]) {
$stuff_to_parse = preg_replace(
- "#([^a-zA-Z0-9\$_\|\.\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#e",
+ "#([^a-zA-Z0-9\$_\|\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#e",
"'\\1' . $func2('\\2', '$k', 'BEGIN') . '<|$styles>' . $func('\\2') . '|>' . $func2('\\2', '$k', 'END') . '\\3'",
$stuff_to_parse
);
} else {
// Change the case of the word.
$stuff_to_parse = preg_replace(
- "#([^a-zA-Z0-9\$_\|\.\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#ie",
+ "#([^a-zA-Z0-9\$_\|\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#ie",
"'\\1' . $func2('\\2', '$k', 'BEGIN') . '<|$styles>' . $func('\\2') . '|>' . $func2('\\2', '$k', 'END') . '\\3'",
$stuff_to_parse
);
@@ -2216,13 +2216,12 @@ class GeSHi
$end = '</div>';
} else {
if ($this->use_classes) {
+ $attr = ' class="li1"';
$def_attr = ' class="de1"';
} else {
+ $attr = ' style="' . $this->line_style1 . '"';
$def_attr = ' style="' . $this->code_style . '"';
}
- // Reset everything
- $attr = '';
- // Span or div?
$start = "<div$def_attr>";
$end = '</div>';
}