Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318891 - Initial code folding for functions sometimes incorrect when the function contains html
Summary: Initial code folding for functions sometimes incorrect when the function cont...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 09:30 EDT by tgross CLA
Modified: 2020-05-14 11:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tgross CLA 2010-07-05 09:30:18 EDT
Build Identifier: 20100617-1415

Some PHP functions, especially when they contain html, are not folded on opening the file, although "Initially fold these elements: Functions" in "Preferences / PHP / Editor / Code folding" is checked.

Reproducible: Always

Steps to Reproduce:
1. In Preferences / PHP / Editor / Code folding, activate "Enable folding" and "Initially fold these elements: Functions"

2. create a php-file containing the following code:

<?php
function showHead()
{
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
</head>
<?php
}

3. Save and close the file, then open it. The function "showHead()" is NOT completely folded.
Comment 1 Zhongwei Zhao CLA 2010-07-06 01:12:35 EDT
fixed in head and branch
Comment 2 Gadi Goldbarg CLA 2010-08-26 10:24:21 EDT
[Petyo Tanchev]

Tested on 2.2.1 SR1
Fixed