久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <i id='H7s8W'><tr id='H7s8W'><dt id='H7s8W'><q id='H7s8W'><span id='H7s8W'><b id='H7s8W'><form id='H7s8W'><ins id='H7s8W'></ins><ul id='H7s8W'></ul><sub id='H7s8W'></sub></form><legend id='H7s8W'></legend><bdo id='H7s8W'><pre id='H7s8W'><center id='H7s8W'></center></pre></bdo></b><th id='H7s8W'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='H7s8W'><tfoot id='H7s8W'></tfoot><dl id='H7s8W'><fieldset id='H7s8W'></fieldset></dl></div>
    2. <small id='H7s8W'></small><noframes id='H7s8W'>

      <tfoot id='H7s8W'></tfoot>

        • <bdo id='H7s8W'></bdo><ul id='H7s8W'></ul>
        <legend id='H7s8W'><style id='H7s8W'><dir id='H7s8W'><q id='H7s8W'></q></dir></style></legend>

        使用 Vim 正確縮進 HTML 和 PHP

        Correct indentation of HTML and PHP using Vim(使用 Vim 正確縮進 HTML 和 PHP)
          <tfoot id='TSImg'></tfoot>
            <tbody id='TSImg'></tbody>

            <bdo id='TSImg'></bdo><ul id='TSImg'></ul>
              <legend id='TSImg'><style id='TSImg'><dir id='TSImg'><q id='TSImg'></q></dir></style></legend>

                <small id='TSImg'></small><noframes id='TSImg'>

              1. <i id='TSImg'><tr id='TSImg'><dt id='TSImg'><q id='TSImg'><span id='TSImg'><b id='TSImg'><form id='TSImg'><ins id='TSImg'></ins><ul id='TSImg'></ul><sub id='TSImg'></sub></form><legend id='TSImg'></legend><bdo id='TSImg'><pre id='TSImg'><center id='TSImg'></center></pre></bdo></b><th id='TSImg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TSImg'><tfoot id='TSImg'></tfoot><dl id='TSImg'><fieldset id='TSImg'></fieldset></dl></div>
                  本文介紹了使用 Vim 正確縮進 HTML 和 PHP的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經使用 Vim 一段時間了,但我無法在 PHP 文件中使用正確的 HTML 縮進.

                  例如,我希望每個子項比其父項多縮進一個制表符,如下所示.

                  <div><label>統一尺寸</label><ul><li class="left"><label for="s" class="small">S</label><input type="radio" name="size[]" value="S"id="s" class="radio"/></li><li class="left"><label for="m" class="small">M</label><input type="radio" name="size[]" value="M"id="m" class="radio"/></li><li class="left"><label for="l" class="small">L</label><input type="radio" name="size[]" value="L"id="l" class="radio"/></li><li class="left"><label for="xl" class="small">XL</label><input type="radio" name="size[]" value="XL"id="xl" class="radio"/></li>

                  <?php}?>

                  使用 PHP-correct-Indent 腳本,代碼結果格式如下:

                  <div><label>統一尺寸</label><ul><li class="left"><label for="s" class="small">S</label><input type="radio" name="size[]" value="S"id="s" class="radio"/></li><li class="left"><label for="m" class="small">M</label><input type="radio" name="size[]" value="M"id="m" class="radio"/></li><li class="left"><label for="l" class="small">L</label><input type="radio" name="size[]" value="L"id="l" class="radio"/></li><li class="left"><label for="xl" class="small">XL</label><input type="radio" name="size[]" value="XL"id="xl" class="radio"/></li>

                  <?php}?>

                  即使使用縮進的 HTML,然后我將 PHP 代碼添加到其中,縮進也會被忽略,移動 HTML 代碼的新行而根本沒有任何縮進.

                  那么,有什么方法可以使用 Vim 獲得我想要在 PHP 文件中處理 HTML 的縮進格式嗎?

                  解決方案

                  這仍然困擾著我.我只是只是決定最好的解決方法(對我個人而言)是這樣的:

                  :set filetype=html

                  然后突出顯示您的文本并點擊=.繁榮!HTML 格式化成功.(不理想,我知道,但至少它有效.)

                  I've been using Vim for a while, and I can't get proper HTML indentation working in PHP files.

                  For example, what I want is for each child to be indented one tab more than it's parent, as shown below.

                  <?php
                  if(isset($sports)) {
                      //Do something
                  ?>
                  <div>
                      <label>Uniform Size</label>
                      <ul>
                          <li class="left"><label for="s" class="small">S</label><input type="radio" name="size[]" value="S" id="s" class="radio" /></li>
                          <li class="left"><label for="m" class="small">M</label><input type="radio" name="size[]" value="M" id="m" class="radio" /></li>
                          <li class="left"><label for="l" class="small">L</label><input type="radio" name="size[]" value="L" id="l" class="radio" /></li>
                          <li class="left"><label for="xl" class="small">XL</label><input type="radio" name="size[]" value="XL" id="xl" class="radio" /></li>
                      </ul>
                  </div>
                  <?php
                  }
                  ?>
                  

                  Using the PHP-correct-Indent script, the code results in being formatted as follows:

                  <?php
                  if(isset($sports)) {
                      //Do something
                  ?>
                  <div>
                  <label>Uniform Size</label>
                  <ul>
                  <li class="left"><label for="s" class="small">S</label><input type="radio" name="size[]" value="S" id="s" class="radio" /></li>
                  <li class="left"><label for="m" class="small">M</label><input type="radio" name="size[]" value="M" id="m" class="radio" /></li>
                  <li class="left"><label for="l" class="small">L</label><input type="radio" name="size[]" value="L" id="l" class="radio" /></li>
                  <li class="left"><label for="xl" class="small">XL</label><input type="radio" name="size[]" value="XL" id="xl" class="radio" /></li>
                  </ul>
                  </div>
                  <?php
                  }
                  ?>
                  

                  Even with indented HTML which I then add PHP code to, the indentation is ignored, moving new lines of HTML code without any indentation at all.

                  So, is there any way that I can get the indentation format that I want working with HTML within PHP files, using Vim?

                  解決方案

                  This still bothers me. I only just decided that the best work-around (for me personally) is this:

                  :set filetype=html
                  

                  And then highlight your text and hit =. BOOM! HTML formatting succes. (Not ideal, I know, but at least it works.)

                  這篇關于使用 Vim 正確縮進 HTML 和 PHP的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現)
                  Sending a byte array from PHP to WCF(將字節數組從 PHP 發送到 WCF)

                • <i id='A6Eg6'><tr id='A6Eg6'><dt id='A6Eg6'><q id='A6Eg6'><span id='A6Eg6'><b id='A6Eg6'><form id='A6Eg6'><ins id='A6Eg6'></ins><ul id='A6Eg6'></ul><sub id='A6Eg6'></sub></form><legend id='A6Eg6'></legend><bdo id='A6Eg6'><pre id='A6Eg6'><center id='A6Eg6'></center></pre></bdo></b><th id='A6Eg6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A6Eg6'><tfoot id='A6Eg6'></tfoot><dl id='A6Eg6'><fieldset id='A6Eg6'></fieldset></dl></div>

                      <small id='A6Eg6'></small><noframes id='A6Eg6'>

                    1. <legend id='A6Eg6'><style id='A6Eg6'><dir id='A6Eg6'><q id='A6Eg6'></q></dir></style></legend>
                        <bdo id='A6Eg6'></bdo><ul id='A6Eg6'></ul>
                      <tfoot id='A6Eg6'></tfoot>
                    2. 主站蜘蛛池模板: 国产福利91精品 | 成人在线免费网站 | 激情久久久久 | 久久久国产一区二区三区四区小说 | 中文字幕免费 | 亚洲一区二区三区免费观看 | 午夜小影院 | 久久国产亚洲 | av手机在线播放 | 中文字幕日本一区二区 | 一区日韩 | 久久久99精品免费观看 | 国产久| 国产精品视频一区二区三区, | 午夜二区 | 开操网 | 中文字幕97 | 久久久久久久久91 | 亚洲在线看 | 日韩亚洲欧美综合 | 亚洲系列第一页 | 免费特黄视频 | 一区二区在线免费观看 | 操操操av| 精品福利一区二区三区 | 天天综合久久 | 国产精品入口 | 亚欧午夜| 在线一级片 | 91精品国产一区二区三区 | 久草视频观看 | 日韩在线中文字幕 | 天天干夜夜操 | 国产亚洲精品久久yy50 | 毛片免费视频 | 亚洲一区二区三区桃乃木香奈 | 中文字幕视频在线观看 | 丁香色婷婷 | 欧美成人a∨高清免费观看 欧美日韩中 | 四虎成人在线播放 | 中文字幕乱码一区二区三区 |