Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4669

PHP: folding broken when PHP strings contain HTML tags

    Details

      Description

      If you build a variable in PHP, to get an HTML element, and You divide it in not "nice" parts for inserting other things, in some cases the folding for whole document will be broken.

      Here Example:
      Folding OK:

      folding_OK.php

      <?php
      /**
       * dummy test Class for broken
       * folding in PHP Aptana Studio 3.1.1.201204131931
       */
      class ClassName extends AnotherClass {
      	
      	function __construct($argument) {
      		$testOption = "<"."p ".$someVariable.">"."</p>";
      	}
      }
       
       
      ?>
      

      Folding broken (look at "<p " <-- element:

      folding_Broken.php

      <?php
      /**
       * dummy test Class for broken
       * folding in PHP Aptana Studio 3.1.1.201204131931
       */
      class ClassName extends AnotherClass {
      	
      	function __construct($argument) {
      		$testOption = "<p ".$someVariable.">"."</p>";
      	}
      }
       
       
      ?>
      

      even if You comment the line out:

      folding_Broken.php

      <?php
      /**
       * dummy test Class for broken
       * folding in PHP Aptana Studio 3.1.1.201204131931
       */
      class ClassName extends AnotherClass {
      	function __construct($argument) {
      //		$testOption = "<p ".$someVariable.">"."</p>";
      	}
      }
      ?>
      

      the folding stays broken ...

      Nik

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                mrlight Nik
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration