简体   繁体   English

phpDesigner IDE 7.0版中的HTML代码格式

[英]HTML code formatting in phpDesigner IDE version 7.0

I am not being able to format the HTML tags using IDE. 我无法使用 IDE格式化HTML标记。 PHP code beautifier in this IDE only formats the PHP code, not HTML tags. 此IDE中的PHP代码美化仅格式化PHP代码,而不是HTML标记。

Is there anyone, who is using PHP designer 7, to help me in this? 是否有人使用PHP设计师7来帮助我?

In PHP Desinger 7: 在PHP Desinger 7中:

  1. CTRL + SHIFT + F1 or CTRL + SHIFT + F1或
  2. 'PHP' menu > 'Code Beutifier for PHP' 'PHP'菜单>'Code Beutifier for PHP'

Note: this helps in formatting PHP code, won't help for HTML or css or SCRIPT in well-format 注意:这有助于格式化PHP代码,对于格式良好的HTML或css或SCRIPT没有帮助

In PHP Desinger 8 : 在PHP Desinger 8中:

PHP Desinger 8 has the features for them as well. PHP Desinger 8也有它们的功能。 Visit this link for more detail of PHP designer 8. 有关PHP designer 8的更多详细信息,请访问此链接

phpDesigner version 8.1.2 phpDesigner版本8.1.2

  1. tools -> HTML CSS Javascript Formatter 工具 - > HTML CSS Javascript Formatter

在此输入图像描述

  1. then select Format HTML 然后选择格式化HTML

在此输入图像描述

  1. click ok 点击确定

A little search around here would have helped you find out that someone else has asked the exact same question and solved it himself - posting the solution for others to enjoy. 在这里进行一点搜索可以帮助您发现其他人已经提出了完全相同的问题并自行解决了问题 - 为其他人发布了解决方案。

Quoting " How to format source code in phpDesigner 7.x " 引用“ 如何在phpDesigner 7.x中格式化源代码

For people who gets same problem: there are 2 ways 对于遇到同样问题的人:有两种方法

  1. Press combination: Ctrl + Shift + F1 按组合:Ctrl + Shift + F1
  2. On the menu bar, select 'PHP' menu. 在菜单栏上,选择“PHP”菜单。 Then select 'Code Beutifier for PHP' (the bottom option). 然后选择'Code Beutifier for PHP'(底部选项)。 Do the same with CSS and HTML 使用CSS和HTML执行相同的操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM