Lua environment Configuration

Source: Internet
Author: User
Environment: Lua for Windows (lfw)
Home: http://luaforwindows.luaforge.net/

Lua for Windows is actually a complete Lua development environment, which includes:
Lua interpreter (Lua interpreter)
Lua Reference Manual (LUA reference manual)
Quick Lua Tour (LUA Quick Start)
Examples (LUA example)
Libraries with documentation (some Lua libraries and documents)
Scite (a great multi-purpose editor with 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 the Options menu to view the global configuration file of the scite environment. 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. properties (if a white background is used, white is used here. properties) file, which stores more detailed property configuration. 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 ).

The whole environment also comes with a quickluatour, which 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.