有从网上下载了php代码,或者自己在文本编辑器里面编辑了php代码,想要代码按照式来编辑,此外我们也想通读一下代码,那readability就大大下降。 所以,我今天给大家推荐PHP Formatter,一个在线的在线php代码缩进、代码美化工具。 你可以将代码文件上传或者
有从网上下载了php代码,或者自己在文本编辑器里面编辑了php代码,想要代码按照格式来编辑,此外我们也想通读一下代码,那readability就大大下降。
你可以将代码文件上传或者直接把代码贴到 http://phpformatter.com,就可以了。
有点需要注意的是,上传的代码文件一定要以结尾。
另外还有一些额外的选项,可以让php语法高亮、去掉注释内容、去掉空行、将函数名链接到相应的php在线手册。
内置的代码样式有:
- K&R style
- Allman/BSD style
- Whitesmiths style
- GNU style
- PEAR style
同时还支持自定义样式,功能甚是强大啊。
如果你觉得还不爽,那么PHP Formatter推出了beta版本 http://beta.phpformatter.com/ ,界面UI得到改善,改用ajax无刷新代码转换,那不爽也得爽啊,强烈建议加入书签。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version
Visual web development tools