xpand 的 Actionscript 3 代码美化器(MWE2 工作流程)

发布于 2024-10-10 08:39:23 字数 242 浏览 0 评论 0原文

目前我

正在开发一个用于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦太阳 2024-10-17 08:39:23

看一下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.

寂寞花火° 2024-10-17 08:39:23

经过长时间的搜索,我自己写了一个小美化器。它没有做太多事情,只计算 { 和缩进以及删除不必要的换行符。

结果并不是很漂亮,但至少代码更具可读性。

感谢您的帮助

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

弥枳 2024-10-17 08:39:23

试试这个 http://jsbeautifier.org/ 我知道它是针对 JS 的,但我尝试过并且有效。

Try this http://jsbeautifier.org/ I know it's for JS ,but i tried and it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文