50%

Lua Beautifier

Ln: 1 Col: 0

Ln: 1 Col: 0

Beautify Lua


Lua Beautifier helps format unformatted or ugly Lua data, making it more readable, visually consistent, easy to debug, and easy to explain.

Lua is a powerful, efficient, lightweight, embeddable scripting language. For more info visit www.lua.org.

In 1993, Roberto, Waldemar, and Luiz started the development of Lua. The primary goal was to develop a lightweight scripting language for embedded systems. Lua means Moon in Portuguese. Nowadays, Lua is also used to create video games. Lua code can become difficult to read and understand, like many programming languages, if not formatted correctly.

Advantages of Lua Formatter

  • Indentation
  • Formatting
  • Consistency
  • Line Length
  • Comments
  • Removing unnecessary characters

What can you do with Lua Code Formatter?

  • It helps to beautify your Lua code.
  • Lua Formatter allows loading the Lua code URL to beautify. Click on the URL button, Enter the 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.
  • The purpose of a Lua beautifier is to make the code more readable and maintainable.

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://codebeautify.org/lua-beautifier?url=external-url

https://codebeautify.org/lua-beautifier?url=https://gist.githubusercontent.com/cbmgit/427879cb07167d59fb70898e2d516d1d/raw/RectArea.lua

Related Tools


Recently visited pages


Tags