Stefano Calabrese created NETBEANS-5578:
-------------------------------------------
Summary: Wrong Indent whem js inside php
Key: NETBEANS-5578
URL: https://issues.apache.org/jira/browse/NETBEANS-5578
Project: NetBeans
Issue Type: Bug
Components: javascript - Editor
Affects Versions: 12.3
Reporter: Stefano Calabrese
Attachments: tmp.php
When you indent php file with javascript inline like that:
{code:java}
public function woocommerce_settings_tabs_fatturehelp($vendor_id = NULL) {
$this->load_style();
$this->fields->styleCheckbox();
?>
<div id="fatturehelp-wc-ajax-loading" style="display: none;position:
fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;opacity:
0.8;z-index: 99999;text-align: center;">
<i class="fa fa-spinner fa-spin" style="font-size:
5em;margin-top:45%;"></i>
</div>
<script type="text/javascript">
function fatturehelp_wc_spinner_start() {
jQuery("#fatturehelp-wc-ajax-loading").fadeIn('fast');
}
function fatturehelp_wc_spinner_stop() {
jQuery("#fatturehelp-wc-ajax-loading").fadeOut('fast');
}
</script>
<?php
}{code}
javascript block will not be indented
Try to indent tha file attached
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists