Lua:registerLuaFunctionHighlight

From Cheat Engine
Revision as of 00:15, 27 June 2026 by Leunsel (talk | contribs) (Examples: Syntax Highlight.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function registerLuaFunctionHighlight(functionname) : void

Registers a Lua function name for syntax highlighting.

After registering the name, the Lua highlighter will show the given function name as a function keyword.

Function Parameters

Parameter Type Description
functionname String The function name to show as a function keyword in the Lua highlighter.

Returns

void — This function does not return any value.

Examples

1 registerLuaFunctionHighlight("myCustomFunction")
2 
3 function myCustomFunction()
4   print("Hello from a highlighted custom function")
5 end

Main Pages

Core Lua documentation entry points

Lua
Script Engine