Quote:
Originally Posted by Astram
Yes but, what I'm wondering is how to find the spaces and append them :P.
|
I'm not sure if there is a better way to do it. This should work just fine.
PHP Code:
//appends all the spaces before any other text begins to the beginning of the next line
nextLine = currentLine.substring(0, currentLine.pos(currentLine.trim())) @ nextLine.trim();
e. Nevermind, as fowlplay suggested, use:
GuiMLTextEditCtrl.autoindenting - boolean - when pressing the return key, then it's automatically inserting the same number of spaces in front of the new line as in the previous line