@Shagwana
I've been looking at the indenting problem. I've tidied a whole bunch of code in that area, and as a result fixed a few non-obvious code issues, and one specific issue that relates to your issues : if you have "<tab><space><space>code", auto-tidy got rid of one (or more) of the spaces.
and...
This isn't how textareas work. The tab is set as a graphical size, not a character size. I don't really want to do the whole "convert tabs to spaces" thing. And TGUIFont's don't tell me their width. So it is (and will continue to be) the case that a tab <> N spaces I'm afraid.
Or at least not until someone figures how to get the width of a TGUIFont on all platforms...
I've been looking at the indenting problem. I've tidied a whole bunch of code in that area, and as a result fixed a few non-obvious code issues, and one specific issue that relates to your issues : if you have "<tab><space><space>code", auto-tidy got rid of one (or more) of the spaces.
and...
looks like a tab of 2 is not equal to a space of 2 as well!
This isn't how textareas work. The tab is set as a graphical size, not a character size. I don't really want to do the whole "convert tabs to spaces" thing. And TGUIFont's don't tell me their width. So it is (and will continue to be) the case that a tab <> N spaces I'm afraid.
Or at least not until someone figures how to get the width of a TGUIFont on all platforms...