View Single Post
08-12-12, 05:38 AM   #10
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Vladinator View Post
Also a question about lua formatting, is there some tool to help reformat a whole file of code? Let's say you got a big file and the new lines messed up so all is now in one line...
Originally Posted by Farmbuyer View Post
If it's only the line endings, then any good text editor should be able to both (a) figure out what the current ending is and adjust its display accordingly, and (b) let you specify what ending to use when saving the file.

If it's more then the line endings, you might try good old GNU Indent and its reformatting modes.
Originally Posted by Dridzt View Post
I'm using Code Chameleon but it's windows and payware.
I'm not sure actually what you all are talking about, but this got me curious. Do you all mean something that formats/autoindents a bunch of obfuscated/compressed code?

Is there also anything similar to http://jsbeautifier.org/ but then for Lua, or any other (scripting) languages?
  Reply With Quote