Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Opera Dragonfly Discussions

Discuss Opera Dragonfly, Opera's new developer tools.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By d4n3 anchor Sunday, 11. May 2008, 21:39:19

avatar

Javascript code auto-formatting

Since a lot of javascript code has its whitespace purged for bandwith,
this makes debugging such code in Dragonfly almost impossible, as its all crammed into a single line.

So it would be cool if there was an auto-formatting feature that would auto-indent the code and add newlines after each line of code.

By dstorey O anchor Monday, 12. May 2008, 18:47:20

avatarI can't promise anything yet, but pretty print is certainly something that I'd like to see, and it would make it much easier for the likes of our QA department to debug sites such as those made by Google.

By hallvors O anchor Tuesday, 13. May 2008, 22:34:31

avatarhttp://my.opera.com/hallvors/blog/2008/05/13/script-formatter-user-js

Moderators: dstorey | operadev | chrismills