Error Message
Lua is a powerful, efficient, lightweight, embeddable scripting language. For more info visit www.lua.org.
Lua Formatter helps to format unformatted or ugly Lua data and helps to save and share Lua.
What can you do with Lua Code Formatter?
- It helps to beautify your Lua code.
- This tool allows loading the Lua code URL to beautify. Click on the URL button, Enter URL and Submit.
- This tool supports loading the Lua code File (.lua) to beautify. Click on the Upload button and Select File.
- Lua Beautifier Online works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.
Example of Lua
Lua data Try it.
Rect = {area = 0, length = 0, breadth = 0} function Rect:new (o,length,breadth) o = o or {} setmetatable(o, self) self.__index = self self.length = length or 0 self.breadth = breadth or 0 self.area = length*breadth; return o end function Rect:printRect () print("The calculated Area of Rect: ",self.area) end
For Advanced Users
Lua External URL
Load Lua External URL in Browser URL like this
https://anydoor.travelroute.uk/
https://anydoor.travelroute.uk/lua-beautifier?url= https://gist.gi thubusercontent .com/cbmgit/427 879cb07167d59fb 70898e2d516d1d/ raw/RectArea.lu a