Lua:registerLuaFunctionHighlight
Jump to navigation
Jump to search
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[edit]
| Parameter | Type | Description |
|---|---|---|
| functionname | String | The function name to show as a function keyword in the Lua highlighter. |
Returns[edit]
void — This function does not return any value.
Examples[edit]
1 registerLuaFunctionHighlight("myCustomFunction")
2
3 function myCustomFunction()
4 print("Hello from a highlighted custom function")
5 end