Garry's Mod Wiki

Revision Difference

Lua_Editors#517358

<cat>Dev</cat> As noted in the welcome tutorial Lua is plain text - so you can edit it in notepad. But you'll probably find you want something a bit better. The editor you use is a personal preference - so it's up to you to choose one for yourself. The editors below are listed because they're the most popular editors in the Garry's Mod community. ⤶ ⤶ # [Notepad++]⤶ (http://notepad-plus-plus.org/) ⤶ ⤶ # [Notepad++](http://notepad-plus-plus.org/) ⤶ A text editor with a number of features. Like Sublime Text, it also has syntax highlighting, a minimap and a number of hotkeys and a Garry's Mod specific Syntax Highlighter which can be found [here](https://web.archive.org/web/20190406231524/https://forum.facepunch.com/gmoddev/oarh/Notepad-GLua-Highlighter/1/). ⤶ ⤶ # [Sublime Text]⤶ (http://sublimetext.com/) ⤶ ⤶ <image src="Notepadplusplus.png" alt="center"/>⤶ ⤶ # [Sublime Text](http://sublimetext.com/) ⤶ A very good text editor in terms of looks and effectiveness, it's highly customizable and easy to use. Has a number of features to aid in development, such as syntax highlighting, a minimap and a number of hotkeys. It also has a great [package manager](https://packagecontrol.io/) for installing plugins. The following are a few recommended packages to install: * [GMod Lua Syntax Highlighting](https://packagecontrol.io/packages/GMod%20Lua) ([Facepunch thread](https://web.archive.org/web/20160907203732/https://facepunch.com/threads/1038951a)) * [GMod Lua Linter](https://packagecontrol.io/packages/SublimeLinter-contrib-glua) # [Visual Studio]⤶ (http://msdn.microsoft.com/en-us/vstudio/) <image src="sublime_text.png" alt="700px"/>⤶ ⤶ # [Visual Studio](http://msdn.microsoft.com/en-us/vstudio/) If you use Visual Studio then it might be more comfortable using it to edit Lua too. The free versions of Visual Studio are called 'Express'. There's a good page about Lua plugins on the [World Of Warcraft Wiki](http://www.wowwiki.com/Lua_editors/Visual_Studio). ⤶ ⤶ # [Visual Studio]⤶ (https://code.visualstudio.com/) ⤶ ⤶ If you use [Visual Studio Code](https://code.visualstudio.com/) then it might be easier to edit Lua as it has tools that users have created to assist in GLUA/Lua specific related items. As an added bonus if you decide to start programming in other languages it has a whole bunch of languages supported and more with the extension page mentioned which can be found [here](https://marketplace.visualstudio.com/VSCode).⤶ ⤶ ⤶ # [IntelliJ IDEA]⤶ (http://www.jetbrains.com/idea/) ⤶ ⤶ <image src="VisualStudioLua.png" alt="700px"/>⤶ ⤶ # [IntelliJ IDEA](http://www.jetbrains.com/idea/) ⤶ If you're a Java developer, then you've probably heard of IntelliJ. IntelliJ is an opensource(ish) IDE for Java and many other languages including Lua. You can get the community edition for [free](http://www.jetbrains.com/idea/download/index.html) or [purchase](http://www.jetbrains.com/idea/buy/index.jsp) the ultimate edition for as low as $99. ⤶ ⤶ # [Eclipse]⤶ (http://www.eclipse.org/) ⤶ ⤶ <image src="intellij.png" alt="700px"/>⤶ ⤶ # [Eclipse](http://http://www.eclipse.org/) ⤶ Eclipse is an IDE primarily focused on Java. If you've ever messed around with Android or Java in general, then you're probably familiar with it. Eclipse has additional support for many languages including Lua via optional plugins such as [LDT](http://www.eclipse.org/koneki/ldt/). ⤶ ⤶ ⤶ <image src="EclipseIDE.png" alt="700px"/>⤶