Fixed bug #15195: TSanalyzer: Add link to breakpoints also in syntaxhighlight mode
authorSteffen Kamper <info@sk-typo3.de>
Fri, 23 Jul 2010 21:41:46 +0000 (21:41 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 23 Jul 2010 21:41:46 +0000 (21:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8255 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tsparser.php
t3lib/class.t3lib_tsparser_ext.php

index 5b19be8..ea239cd 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-07-23  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #15195: TSanalyzer: Add link to breakpoints also in syntaxhighlight mode
        * Fixed bug #15207: Clipboard doesn't initialize backPath
 
 2010-07-23  Stanislas Rolland  <typo3@sjbr.ca>
index ca3fcea..7a00b5a 100644 (file)
@@ -122,6 +122,7 @@ class t3lib_TSparser {
        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
@@ -692,6 +693,9 @@ class t3lib_TSparser {
 
                        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 b0b77d6..c917366 100644 (file)
@@ -683,6 +683,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
                        $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);