AboutLUA environment ConfigurationThe Learning tutorial is the content to be introduced in this article, mainly to learn howConfigure luaOfEnvironmentFor more information, see the detailed description.
Environment: Lua for windows (lfW)
Home: http://luaforwindows.luaforge.net/
- Lua for windows is actually a complete Lua development environment, which includes:
- Lua InterpreterLua Interpreter)
- Lua Reference ManualLua Reference manual)
- Quick Lua Tour Lua Quick Start)
- Examples Lua example)
- Libraries with documentation some Lua Libraries and documents)
- SciTE is a great multi-purpose editor that has made special settings for Lua)
For more details, go to the luaforge homepage.
This environment is recommended because it integrates everything you need to learn and develop Lua in windows. It is very considerate for new users, with SciTE, you can easily compile, compile, run, and debug the Lua program after simple configuration. It also comes with automatic prompts and code auto-completion functions. for developers who are familiar with VC + VA, it is really kind.
The entire lfW is introduced below:
Download lfw. The latest version is 5.1.3.13. Install lfw directly. Note that the last step will ask if the SciTE editor uses the "black" style. I prefer the black background color, so check it here, and then proceed.
After the installation is complete, it is very easy to learn all the environments required by Lua.
Next, we can test whether the installation is successful.
Open SciTE, create a new file, and enter a line of lua code:
- print("hello,lua")
Save as hello. lua. Note that the file name suffix. lua must be added when saving the file; otherwise, the file may not run correctly.
Press F5. If the output window of SciTE appears
- >lua -e "io.stdout:setvbuf 'no'" "hello.lua"
- hello,lua
- >Exit code: 0
Indicates that the entire lua development environment is successfully installed.
If you are not satisfied with the default SciTE color scheme or font, click Open Global Options File in Options.EnvironmentGlobalConfigurationFile. You can modify the font, color, window layout, and other values. If you cannot find the project you want to modify, go to Open black in Options. properties: if a white background is used, white is used here. properties) file search, which stores more detailed propertiesConfiguration. Modifying these two files can basically satisfy the personal interests of most learning or developers. Also, in the Global Options File, find command. help. *. lua, followed by the lua manual file path in chm format popped up by pressing the F1 key in the editor. You need to modify the path here, correct the file path. Version 5.1.3 does not seem to have this problem ).
WholeEnvironmentA QuickLuaTour is a small console-based tutorial written in Lua, which is easy to understand.
Basically, the entire environment is like this. Then you can start learning Lua.
Summary: AboutLUA environment ConfigurationThe course content has been introduced. I hope this article will help you!