pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    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="lf75r7x" 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="5vdbhrn" 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="5fjdx5v" 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. 主站蜘蛛池模板: 酒糟烘干机-豆渣烘干机-薯渣烘干机-糟渣烘干设备厂家-焦作市真节能环保设备科技有限公司 | 数显恒温油浴-电砂浴-高温油浴振荡器-常州迈科诺仪器有限公司 | 深圳昂为官网-气体分析仪,沼气分析仪,动态配气仪,气体传感器厂家 | 济南网站策划设计_自适应网站制作_H5企业网站搭建_济南外贸网站制作公司_锐尚 | 艺术涂料_进口艺术涂料_艺术涂料加盟_艺术涂料十大品牌 -英国蒙太奇艺术涂料 | 幂简集成 - 品种超全的API接口平台, 一站搜索、试用、集成国内外API接口 | 常州翔天实验仪器厂-恒温振荡器-台式恒温振荡器-微量血液离心机 恒温恒湿箱(药品/保健品/食品/半导体/细菌)-兰贝石(北京)科技有限公司 | DDoS安全防护官网-领先的DDoS安全防护服务商 | 非甲烷总烃分析仪|环控百科 | 交变/复合盐雾试验箱-高低温冲击试验箱_安奈设备产品供应杭州/江苏南京/安徽马鞍山合肥等全国各地 | 等离子表面处理机-等离子表面活化机-真空等离子清洗机-深圳市东信高科自动化设备有限公司 | 刮板输送机,粉尘加湿搅拌机,螺旋输送机,布袋除尘器 | POM塑料_PBT材料「进口」聚甲醛POM杜邦原料、加纤PBT塑料报价格找利隆塑料 | 旗杆生产厂家_不锈钢锥形旗杆价格_铝合金电动旗杆-上海锥升金属科技有限公司 | 顺景erp系统_erp软件_erp软件系统_企业erp管理系统-广东顺景软件科技有限公司 | 污泥烘干机-低温干化机-工业污泥烘干设备厂家-焦作市真节能环保设备科技有限公司 | 水质监测站_水质在线分析仪_水质自动监测系统_多参数水质在线监测仪_水质传感器-山东万象环境科技有限公司 | 北京中创汇安科贸有限公司 | 烟台游艇培训,威海游艇培训-烟台市邮轮游艇行业协会 | 螺旋压榨机-刮泥机-潜水搅拌机-电动泥斗-潜水推流器-南京格林兰环保设备有限公司 | 深圳公司注册-工商注册代理-注册公司流程和费用_护航财税 | 南京展台搭建-南京展会设计-南京展览设计公司-南京展厅展示设计-南京汇雅展览工程有限公司 | Eiafans.com_环评爱好者 环评网|环评论坛|环评报告公示网|竣工环保验收公示网|环保验收报告公示网|环保自主验收公示|环评公示网|环保公示网|注册环评工程师|环境影响评价|环评师|规划环评|环评报告|环评考试网|环评论坛 - Powered by Discuz! | 偏心半球阀-电动偏心半球阀-调流调压阀-旋球阀-上欧阀门有限公司 | 【MBA备考网】-2024年工商管理硕士MBA院校/报考条件/培训/考试科目/提前面试/考试/学费-MBA备考网 | 磁力抛光机_磁力研磨机_磁力去毛刺机-冠古设备厂家|维修|租赁【官网】 | MTK核心板|MTK开发板|MTK模块|4G核心板|4G模块|5G核心板|5G模块|安卓核心板|安卓模块|高通核心板-深圳市新移科技有限公司 | 广州云仓代发-昊哥云仓专业电商仓储托管外包代发货服务 | 防爆暖风机_防爆电暖器_防爆电暖风机_防爆电热油汀_南阳市中通智能科技集团有限公司 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | 工业用品一站式采购平台|南创工品汇-官网|广州南创 | 烽火安全网_加密软件、神盾软件官网| 警用|治安|保安|不锈钢岗亭-售货亭价格-垃圾分类亭-移动厕所厂家-苏州灿宇建材 | 玻璃钢罐_玻璃钢储罐_盐酸罐厂家-河北华盛节能设备有限公司 | 海日牌清洗剂-打造带电清洗剂、工业清洗剂等清洗剂国内一线品牌 海外整合营销-独立站营销-社交媒体运营_广州甲壳虫跨境网络服务 | 旗帜网络笔记-免费领取《旗帜网络笔记》电子书 | MVE振动电机_MVE震动电机_MVE卧式振打电机-河南新乡德诚生产厂家 | 除湿机|工业除湿机|抽湿器|大型地下室车间仓库吊顶防爆除湿机|抽湿烘干房|新风除湿机|调温/降温除湿机|恒温恒湿机|加湿机-杭州川田电器有限公司 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库-首页-东莞市傲马网络科技有限公司 | 顶空进样器-吹扫捕集仪-热脱附仪-二次热解吸仪-北京华盛谱信仪器 | IWIS链条代理-ALPS耦合透镜-硅烷预处理剂-上海顶楚电子有限公司 lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 |