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 252689 - Defect auto-format for javascript with multiple php value (<?= ... ?> - short tag)
Summary: Defect auto-format for javascript with multiple php value (<?= ... ?> - short...
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-29 16:06 UTC by amobilia
Modified: 2016-08-30 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (123.77 KB, text/plain)
2015-05-29 16:06 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2015-05-29 16:06:29 UTC
Netbeans autoformat failed to format the following code :
-----------------------------------
<script type="text/javascript">
    $(document).ready(function () {
        $('#graphiqueHistoriqueEQS').highcharts({
        chart: {
        type: 'column',
        },
                title: {
                text: 'mon Titre',
                },
                xAxis: {
<?= metaObject::getCategories() ?>
                },
<?= metaObject::getSeries(metaObject::getHistorique($secteur, $annee - 1), metaObject::getHistorique($secteur, $annee - 2)); ?>
        });
    });
</script>
-----------------------------------
If I add "keyword:" before my first <?= ... ?> the auto-format work nice.

Note : the auto-format work correctly for the same code, with just a php value eg :
-----------------------------------
<script type="text/javascript">
    $(document).ready(function () {
        $('#graphiqueHistoriqueEQS').highcharts({
            chart: {
                type: 'column',
            },
            title: {
                text: 'Historique EQS',
            },
<?= highchartsMetaObject::getSeries(directionMetaObject::getHistoriqueEQS($secteur, $annee - 1), directionMetaObject::getHistoriqueEQS($secteur, $annee - 2)); ?>
        });
    });
</script>
-----------------------------------

Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) Client VM 25.45-b02
Comment 1 amobilia 2015-05-29 16:06:35 UTC
Created attachment 153956 [details]
IDE log
Comment 2 amobilia 2015-08-24 09:41:29 UTC
The bug is still available on the version NetBeans IDE Dev (Build 201508170002)
Comment 3 amobilia 2015-09-10 14:11:20 UTC
Bug still here on Dev 201509090002
Comment 4 amobilia 2016-03-03 08:49:26 UTC
Still available in dev 201601010002