How do you execute a lua file in sublime text 3? I tried opening the console and typing build <filename>.lua
. I also looked through the menu's for a build and run. Supposedly saving a file or hitting F7 is supposed to execute lua scripts, but that did not work either. I expected 'helo world' to print in the console upon save and all it said was the file was written.
contents of helo.lua:
print('helo world');
I was wondering to start scripting lua in Sublime and need to know know is it possible to execute lua in any way in the Sublime text app? Sure you can. Just install the Lua Dev package. Of course you'll also need to have Lua installed on your system too though.
To run a Lua scriptOpen the Lua Script Library through Prepare > Run Lua Script. Use the appearing dialog to load, save, and execute Lua scripts as well as to create new ones. Select the script to be run. Click Execute Script.
Lua is used for various purposes, including scripting in applications or on the web, programming games, and adding extensions to databases. Some examples of real-world use of Lua include the customization of World of Warcraft and Dawn of War video games and the programming of the Adobe Lightroom app user interface.
You can manually create a build configuration for Lua. However, I suggest that it is simpler to install a Lua package that includes one.
You may also need to install "Fix Mac Path". At the time of this writing this package was not found by Package Control. Alternatively, install "Fix Mac Path" by running the following command in terminal:
git clone https://github.com/int3h/SublimeFixMacPath.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/FixMacPath
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With