Fede-lasse
|
 |
Posted on: March 30, 2011, 04:24:09 AM |
|
|
AI Programmer
 Location: Denmark, Europe Joined: Oct 2008
Posts: -2342534e-10
|
http://jsbeautifier.org/The above thing is a JavaScript beautifier (auto formatter). It works 99% with GML. The only issues I've had with it is sometimes improper formatting when using var. Works with C++? I dunno. With EDL? Hopefully. It's written in Python and the source code is provided. I thought that it may be of some use and may save some time.
|
|
|
|
|
Logged
|
Call me Fede.
|
|
|
MrGriggs
|
 |
Reply #1 Posted on: March 30, 2011, 05:02:24 AM |
|
|
 Joined: Dec 2010
Posts: 129
|
Hey, this is pretty cool! An auto commentation program would be nice too  .
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
|
|
Fede-lasse
|
 |
Reply #5 Posted on: March 31, 2011, 05:08:33 AM |
|
|
AI Programmer
 Location: Denmark, Europe Joined: Oct 2008
Posts: -2342534e-10
|
Actually, it's available in JavaScript, too. Can't you somehow convert it? @Retro, stop being so pessimistic, please?
|
|
|
|
« Last Edit: March 31, 2011, 05:25:56 AM by Fede-lasse »
|
Logged
|
Call me Fede.
|
|
|
luiscubal
|
 |
Reply #6 Posted on: March 31, 2011, 11:22:27 AM |
|
|
 Joined: Jun 2009
Posts: 476
|
Actually, it's available in JavaScript, too. Can't you somehow convert it? JavaScript != Java Yes, one can convert JS to Java, but that also applies to Python. Also, about EDL, be aware of the existence of begin/end, which will probably screw up the beautifier in epic proportions.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
Josh @ Dreamland
|
 |
Reply #9 Posted on: April 01, 2011, 12:11:16 AM |
|
|
Prince of all Goldfish
 Location: Ohio, United States Joined: Feb 2008
Posts: 2339
|
Or, I mean, we could just write our own and not fuck with python-java conversions and javascript-EDL differences (The largest of which have already been mentioned).
It's not about being stubborn. If you find me a beautifier specifically tailored to a language between C++ and GML, I'd be happy to slap it in. If you want to point me to tools that might help me, that most people ultimately avoid, I'm going to say, "fuck you," and do it my way.
|
|
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|