GMod Lua syntax highlighters

From GMod Wiki

Jump to: navigation, search
Patches.png Go to:
Development Tools

Contents

Summary

Lua in its implementation in GMod differs slightly from that of standard Lua.

For those fussy people who would rather have their GMod Lua code highlighted properly (e.g. when they're using C-style comments), below is a list of custom highlighters available for some commom text editors to provide GMod Lua highlighting for GMod Lua scripts such as SWEPs.

PSPad

http://www.pspad.com/en

Pspad gmlua.png

Download PSPad_Gmod Lua.zip (424 bytes)

Follow these steps to set up the GMod Lua highlighter with PSPad.

NOTE: If you wish to also have the standard Lua highlighter enabled at the same time, following the instruction outlined in the last step will be a necessity everytime you want to highlight code GMod Lua style.



jEdit

http://www.jedit.org

Jedit_gmlua2.png


Download jEdit_Gmod Lua.zip (1.91 KB)


Follow these steps to set up the GMod Lua highlighter with jEdit.

 
<MODE NAME="GMod Lua"          FILE="gmodlua.xml" 
                               FILE_NAME_GLOB="*.lua" /> 
 
 
<MODE NAME="lua"		FILE="lua.xml"
				FILE_NAME_GLOB="*.lua" />
 
NOTE: If you choose the extension changing solution for this step. Make sure you use an extension that will not conflict with any other language highlighting you may want to still use.




Other Editors

Below are GMod Lua highlighter files for other text editors which as yet do not have any instructions for their use on this wiki.

Notepad++

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox