zerobrane

How to format file or selection in ZeroBrane


Is there a menu command or a plugin to format the whole file or the selection?

I tried Correct Indentation, but it did nothing to the following code.

local     x = 'Hello' y = 'world' if y..x == 'worldHello'then  print('OK')    end

Solution

  • ZeroBrane Studio will adjust the indentation, but it will not break the lines to do a complete formatting (this is why you don't see any difference on your line of code). You may have to use something like LuaFormatter for this.