Question

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

Was it helpful?

Solution 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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top