This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187695

Summary: php short tag formatting is not working properly
Product: php Reporter: narcom <narcom>
Component: Formatting & IndentationAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://forums.netbeans.org/topic26792.html
Issue Type: DEFECT Exception Reporter:

Description narcom 2010-06-17 04:39:40 UTC
look at this post http://forums.netbeans.org/topic26792.html user marko5

When I autoformat the following code :
Code:
<a href="<?=$ahref?>" class='next'>Next Page &gt;&gt;</a>

it becomes :
Code:
<a href="<?=$ahref
        ?>" class='next'>Next Page &gt;&gt;</a>


if I change the line to <? echo instead of the <? = like below, the line bread does not happen.
Code:
<a href="<? echo $ahref; ?>" class='next'>Next Page &gt;&gt;</a>

so It is absolutely not possible to format php templates whit short open tags
Comment 1 Petr Pisl 2010-06-18 09:49:46 UTC
This issue I fixed last week. See issue #187309. It wasn't possible to deliver the fix into NB 6.9, it's available in dev builds and also is already transplanted to the patch release.

*** This bug has been marked as a duplicate of bug 187309 ***