문제

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

도움이 되었습니까?

해결책 2

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

다른 팁

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.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top