xpand 的 Actionscript 3 代码美化器(MWE2 工作流程)
目前我
正在开发一个用于 Java 和 Actionscript3 的代码生成器。
生成器运行得很好,但 Actionscript3 代码不太好。
对于Java,有一个与xpand(MWE2工作流程)集成的现有代码美化器,但对于Actionscript3我找不到任何东西。
有什么想法吗?也许有人已经准备好使用 AS3 代码美化器或知道可以与 xpand 和 MWE2 Workflow 集成的第三方美化器
I
Currently I'm developing a code generator for Java and Actionscript3.
The generator works quiet well, but the Actionscript3 code isn't really nice.
For Java, there is an existing code beautifier integrated with xpand (MWE2 Workflow) but for Actionscript3 I cannot find anything.
Any idea? Perhaps someone have a ready to use AS3 code beautifier or knows a third party beautifier which may be integrated with xpand and MWE2 Workflow
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看一下uncrustify 后处理器。它将生成的输出传递给命令行工具,以生成具有所需缩进的实际输出。如果 uncrustify 本身不适合您,后处理器的源代码可能会帮助您附加您自己的外部工具。
Take a look at the uncrustify post-processor. It passes the generated output to a command line tool to produce the actual output with the desired indentation. If uncrustify itself doesn't suit you, the source code of the post-processor might help you to attach you own external tool.
经过长时间的搜索,我自己写了一个小美化器。它没有做太多事情,只计算 { 和缩进以及删除不必要的换行符。
结果并不是很漂亮,但至少代码更具可读性。
感谢您的帮助
After a long search, I have written a small beautifier at my own. It don't do much, only counting the { and indent as well as removing unnecessary line-breaks.
The result isn't really beautifully, but at least the code is more readable.
Thanks for the help
试试这个 http://jsbeautifier.org/ 我知道它是针对 JS 的,但我尝试过并且有效。
Try this http://jsbeautifier.org/ I know it's for JS ,but i tried and it worked.