Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5578

Wrong Indent whem js inside php

    XMLWordPrintableJSON

Details

    Description

      When you indent php file with javascript inline like that:

       

       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
      }

      javascript block will not be indented

       

       

       

      Try to indent tha file attached

       

       

      Attachments

        1. tmp.php
          4 kB
          Stefano Calabrese

        Activity

          People

            Unassigned Unassigned
            stefanoai Stefano Calabrese
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: