Topic: Properly Formatted Javascript.


I'm trying to edit the Javascript file that was provided with simpleviewer pro that I purchased a few days ago, and it is not formatted in a readable fashion. Is this typical? I'm trying to edit it in Dreamweaver, and it should be fine, and it formats the XML that is provided fine so I can't see Dreamweaver being the issue. I've also tested some other programs, and the file is still unformatted.

It's all in one block, and there are no linebreaks dividing functions or if statements, etc.

Is there a way to resolve this issue?

Last edited by kamikazefowler (2010-03-08 03:09:37)

Re: Properly Formatted Javascript.

Which JavaScript are you trying to edit? Often times JavaScripts are compressed to reduce their size. You can use jsbeautifier to reformat the JavaScript.

Mike Richards
SimpleViewer Support Team.

Re: Properly Formatted Javascript.

Great! That does the trick. Thanks.