View Single Post
  #4  
Old 08-24-2011, 05:24 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by Astram View Post
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(0currentLine.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

Last edited by 0PiX0; 08-24-2011 at 06:18 AM..
Reply With Quote