Actionscript 3 code beautifier for xpand (MWE2 Workflow)

1k views Asked by At

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

3

There are 3 answers

0
Yves On BEST ANSWER

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

0
Heiko Behrens On

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.

1
Abel On

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