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 - php short tag formatting is not working properly
Summary: php short tag formatting is not working properly
Status: RESOLVED DUPLICATE of bug 187309
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Petr Pisl
URL: http://forums.netbeans.org/topic26792...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 04:39 UTC by narcom
Modified: 2010-06-18 09:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***