Old 03-10-2019, 12:15 PM   #1
kartalex
Human being with feelings
 
Join Date: Dec 2015
Posts: 14
Default LUA source formatting tool ???

Hi, guys!

Do you use any LUA-text formatting program, that could make the sources look more beautiful? (identation, make all the whitespaces right, other things to make it look professional)) I've seen some online tools, doesn't seem to work...
kartalex is offline   Reply With Quote
Old 03-10-2019, 10:18 PM   #2
MusoBob
Human being with feelings
 
Join Date: Sep 2014
Posts: 540
Default

I think ZeroBrane has a lua beautifier
MusoBob is offline   Reply With Quote
Old 03-11-2019, 06:13 AM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,645
Default

- Set your indentation to use spaces (two or four, your choice) and use an IDE that can auto-indent for you when you open a ( or start an If statement, etc.

- Use a linter like LuaCheck and it will yell at you if your formatting doesn't match its rules.
Lokasenna is online now   Reply With Quote
Old 03-11-2019, 07:18 AM   #4
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 816
Default

*coughcough* the best tool is still to learn to do it intuitively right away. Helps you a lot when debugging stuff and isn't that hard to learn... *coughcough*
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 03-12-2019, 11:34 AM   #5
kartalex
Human being with feelings
 
Join Date: Dec 2015
Posts: 14
Default

Quote:
Originally Posted by MusoBob View Post
I think ZeroBrane has a lua beautifier
Thanks! That's working like charm
kartalex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.