Project

General

Profile

Bug #23246 ยป 15195.diff

Administrator Admin, 2010-07-21 16:06

View differences:

t3lib/class.t3lib_tsparser.php (working copy)
var $highLightBlockStyles = ''; // Additional attributes for the <span> tags for a blockmode line
var $highLightBlockStyles_basecolor = '#cccccc'; // The hex-HTML color for the blockmode
public $parentObject; //Instance of parentObject, used by t3lib_tsparser_ext
/**
* Start parsing the input TypoScript text piece. The result is stored in $this->setup
......
if (is_array($lineNumDat)) {
$lineNum = $rawP+$lineNumDat[0];
if ($this->parentObject instanceof t3lib_tsparser_ext) {
$lineNum = $this->parentObject->ext_lnBreakPointWrap($lineNum, $lineNum);
}
$lineC = $this->highLightStyles['linenum'][0].str_pad($lineNum,4,' ',STR_PAD_LEFT).':'.$this->highLightStyles['linenum'][1].' '.$lineC;
}
t3lib/class.t3lib_tsparser_ext.php (working copy)
$all = chop($all);
$tsparser = t3lib_div::makeInstance('t3lib_TSparser');
$tsparser->lineNumberOffset=$this->ext_lineNumberOffset+1;
$tsparser->parentObject = $this;
return $tsparser->doSyntaxHighlight($all,$lineNumbers?array($this->ext_lineNumberOffset+1):'',$syntaxHLBlockmode);
} else {
return $this->ext_formatTS($all,$lineNumbers,$comments,$crop);
    (1-1/1)