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 240528 - Code alignment mistake
Summary: Code alignment mistake
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 07:48 UTC by s4urp8n
Modified: 2016-09-23 10:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of alighment mistake (295.62 KB, application/zip)
2014-01-16 07:48 UTC, s4urp8n
Details

Note You need to log in before you can comment on or make changes to this bug.
Description s4urp8n 2014-01-16 07:48:58 UTC
Created attachment 144015 [details]
screenshot of alighment mistake

Code alignment breaks if you write dynamic JS into HTML script tag using PHP tags. 

USES AUTOMATIC FORMATING ALT+SHIFT+F

See attachment archive for example screenshot and PHP-code
Comment 1 mmolda 2014-01-27 16:24:23 UTC
PHP tags are formatted with no indentiation.

Example - before format:

<script>
    alert('start');
    <?php
    $a = 5;
    ?>
    alert('end');

</script>

After format:

<script>
    alert('start');
<?php
$a = 5;
?>
    alert('end');

</script>