Index: t3lib/class.t3lib_tsparser.php =================================================================== --- t3lib/class.t3lib_tsparser.php (revision 8242) +++ t3lib/class.t3lib_tsparser.php (working copy) @@ -122,6 +122,7 @@ var $highLightBlockStyles = ''; // Additional attributes for the 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 @@ -692,6 +693,9 @@ 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; } Index: t3lib/class.t3lib_tsparser_ext.php =================================================================== --- t3lib/class.t3lib_tsparser_ext.php (revision 8242) +++ t3lib/class.t3lib_tsparser_ext.php (working copy) @@ -683,6 +683,7 @@ $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);