使用换行符和制表符自动设置HTML/PHP格式 [英] Auto Format HTML/PHP With Line Breaks and Tabs

查看:191
本文介绍了使用换行符和制表符自动设置HTML/PHP格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题.我们团队中的某人编辑了一个HTML/PHP文件,该文件的全部内容以一行结尾.所有换行符和选项卡都已从文件中完全删除.它是一个很大的文件,因此尝试手动对其进行编辑将永远耗费时间.

I've run into a problem. Someone on our team edited a HTML/PHP file, and the entire contents of the file ended up on a single line. All line breaks and tabs were completely removed from the file. Its a very large file, so trying to edit it manually would take forever.

有人知道我可以用来重新格式化代码的工具吗?

Does anyone know of a tool I can use to re-format the code?

推荐答案

使用 NetBeans IDE 进行开发目的.然后在该IDE中打开文件,并同时按以下键- Alt + Shift + F .

Use the NetBeans IDE, for the development purpose. Then open the file in that IDE and press these keys at the same time - Alt + Shift + F.

文件将被很好地格式化,并且还将显示文件中是否有错误.

The file will get formatted nicely, and also will show you if there are any errors in that file.

这篇关于使用换行符和制表符自动设置HTML/PHP格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆