Parsing LUA development environment learning tutorial

Source: Internet
Author: User

LUA Development EnvironmentThe course is the content to be introduced in this article.Lua Development EnvironmentIn this article, we use two differentDevelopment EnvironmentFor exampleLuaFor details, refer to this article.

Create a lua Development Environment admin in eclipse

1. Install LuaEclipse for your eclipse and add Eclipse Software Update Site "http://luaeclipse.luaforge.net/update-site ".

2. Download LuaBinaries at http://luabinaries.sourceforge.net /". For example, download “lua5_1_4_win32_bin.zip ".

3. Decompress “lua5_1_4_win32_bin.zip ".

4. Set the Lua script interpreter in eclipse, and then click lua5_20.4_win32_bin.zip to define lua5.1.exe ".

LuaEclipse can edit the lua script and run the lu script, but it does not have the debugging function.

Configure the lua development environment in Windows 7

Environment: lua for windows (lfW)

Home: http://luaforwindows.luaforge.net/

Lua for windows is a complete Lua development environment, which includes:

 
 
  1. Lua InterpreterLua Interpreter)
  2. Lua Reference ManualLua Reference manual)
  3. Quick Lua Tour Lua Quick Start)
  4. 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 ), OOXX Research Institute recommends this environment because it integrates everything needed to learn and develop Lua in windows. It is very considerate for new users, the accompanying SciTE can easily compile, compile, run, and debug the Lua program through simple configuration. It still comes with automatic prompts and code auto-completion functions. for developers who are familiar with VC + VA, it is actually too friendly.

The entire lfW is introduced below:

Download lfw. The latest version is 5.1.3.13. Install it directly. Check whether the SciTE editor uses the "black" style in the last step. I prefer the black background color, so check it here, and then inherit.
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")  

Keep it as hello. lua. Note that the file name suffix. lua should be added when the file is retained; otherwise, the operation may not be accurate.

Press F5. If the output window of SciTE is

 
 
  1. >lua -e "io.stdout:setvbuf ‘no’" "hello.lua"   
  2. hello,lua   
  3. >Exit code: 0  

This represents the entireLua Development EnvironmentThe installation is successful.

If the default color scheme or font of SciTE is not met, click Open Global Options File in Options 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, you can go to Open black in Options. properties: if a white background is used, white is used here. properties) file, which stores more detailed property configuration. By modifying these two files, you will be able to meet the needs of major organizations or developers' personal preferences. Also, in the Global Options File, find command. help. *. lua, what should be faced later is the lua manual file path in the chm pattern pop-up by pressing the F1 key in the editor. You need to modify it here, correct the file path. Version 5.1.3 does not seem to have this question ).

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.

Summary: AnalysisLUAThe development environment learning tutorial is complete. 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.