多语言命令行源代码格式化程序 [英] Multi-language command-line source code formatter

查看:54
本文介绍了多语言命令行源代码格式化程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个命令行Unix工具可以格式化/缩进/修饰不同语言的源代码?我对Java,JavaScript,PHP和XML尤其感兴趣,但理想情况下它可以处理其他内容。

Is there a command-line Unix tool that will format/indent/prettify source code in different languages? I'm especially interested in Java, JavaScript, PHP, and XML, but ideally it would handle others.

(我不是在寻找生成语法高亮显示的内容标记;我已经知道一些这样做的工具。)

(I'm not looking for something to generate syntax-highlighting markup; I already know of a few tools that do that.)

推荐答案

艺术风格。
http://astyle.sourceforge.net/

这篇关于多语言命令行源代码格式化程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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