I'm creating a Lua program using ICSharpCode. Now, what I'm asking is how would I code the Indentation? My friends and the community I'm in were asking if I could add this for them, but I wouldn't know where to start.
Only things I have seen is people using 'Trim', etc. So, if anyone could post an example, that would be nice.
Example of what I'm talking about:
Incorrect:
1 2
function Action(Event)
end
Correct:
1 2
function Action(Event)
end
Or with multiple statements:
1 2 3 4
function Action(Event)
if(a < b)
end
end
Basically, I want it to make the 'end' join with 'function', 'if', etc; when they aren't in the correct position.