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 176584 - [indentation] wrong indentation when writing php between html tags
Summary: [indentation] wrong indentation when writing php between html tags
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 218436 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-11 11:34 UTC by Filip Zamboj
Modified: 2012-09-17 07:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Print Screen (188.71 KB, image/jpeg)
2010-09-15 23:31 UTC, error403
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-11-11 11:34:43 UTC
code: 
<?php foreach($categories_list as $i => $category): ?>
        <h2><?php echo $category->getName() ?></h2><br>
<?php endforeach; ?>

now write function after echo and use code completion

you will get: 
<?php foreach($categories_list as $i => $category): ?>
<h2><?php echo link_to()$category->getName() ?></h2><br>
<?php endforeach; ?>
Comment 1 Petr Pisl 2009-11-12 03:42:11 UTC
Probably there is no time to fix it in NB 6.8
Comment 2 Petr Pisl 2010-05-06 16:24:35 UTC
Still reproducible in nb 6.9
Comment 3 error403 2010-09-15 23:31:24 UTC
Created attachment 102038 [details]
Print Screen

Below '<div id="media-content">' you can see '<div id="media"></div>'. This would shift to left three times.
Comment 4 Petr Pisl 2011-09-23 13:44:40 UTC
Still reproducible in NB 7.1.
Comment 5 Ondrej Brejla 2011-10-27 08:53:52 UTC
Still reproducible
Comment 6 Ondrej Brejla 2012-09-17 07:45:36 UTC
*** Bug 218436 has been marked as a duplicate of this bug. ***