Tutorial on LUA environment Configuration

Source: Internet
Author: User

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/

 
 
  1. Lua for windows is actually a complete Lua development environment, which includes:
  2. Lua InterpreterLua Interpreter)
  3. Lua Reference ManualLua Reference manual)
  4. Quick Lua Tour Lua Quick Start)
  5. Examples Lua example)
  6. Libraries with documentation some Lua Libraries and documents)
  7. 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:

 
 
  1. 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

 
 
  1. >lua -e "io.stdout:setvbuf 'no'" "hello.lua"   
  2. hello,lua  
  3. >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!

Related Article

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.