[Implemented] Real TABS instead if simple spaces
-
- Enthusiast
- Posts: 362
- Joined: Wed Aug 06, 2003 2:49 pm
- Location: Venice - Italy, Japan when possible.
- Contact:
[Implemented] Real TABS instead if simple spaces
I'd like the editor to ure REAL tabs spacing, not just a couple of spaces...
As you may know, it's a normal feature in all common text editors, and many times it's optional too...
As you may know, it's a normal feature in all common text editors, and many times it's optional too...
RichEdit controls support real tabs.
Use SendMessage_ with #EM_SETPARAFORMAT and PARAMFORMAT2
More information on parameters and commands are here:
http://msdn.microsoft.com/library/defau ... format.asp
http://msdn.microsoft.com/library/defau ... ormat2.asp
A good startingpoint coult be the linenumbering thread
viewtopic.php?t=13467
Sorry i can't give you examples at the moment cause I'm in a hurry.
Maybe I can tell you more in a few hours...
sverson
Use SendMessage_ with #EM_SETPARAFORMAT and PARAMFORMAT2
More information on parameters and commands are here:
http://msdn.microsoft.com/library/defau ... format.asp
http://msdn.microsoft.com/library/defau ... ormat2.asp
A good startingpoint coult be the linenumbering thread
viewtopic.php?t=13467
Sorry i can't give you examples at the moment cause I'm in a hurry.
Maybe I can tell you more in a few hours...

- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
A real TAB would be great, its the only thing I don't like about the editor - everything else is great! 
-Anthony

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
PB Editor converts the tab key input to 2 spaces (it outputs $2020).Polo wrote:Psychophanta -> But i think Purebasic adds 2 or 3 spaces, not really sure thought...
As i said before, the idea should be TAB key input to be customizable by PB editor. I mean convert it to a given "selectable" number of space characters.

- tinman
- PureBasic Expert
- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
???Psychophanta wrote:As i said before, the idea should be TAB key input to be customizable by PB editor. I mean convert it to a given "selectable" number of space characters.
In the File->Preferences window there is an option to set how many spaces in a tab there are.
I'd quite like the option of using either method, but it typically ends up being a mess, depending on how the editor works. Quite a few seem to get confused and then end up mixing spaces and tabs, which of course goes horribly wrong when someone with a different tab length views your code.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Wooops! There is.tinman wrote:In the File->Preferences window there is an option to set how many spaces in a tab there are.
Blade, Polo, DoubleDutch,
You see? So the solution was before the request this time.

Totally agree.tinman wrote:I'd quite like the option of using either method, but it typically ends up being a mess, depending on how the editor works. Quite a few seem to get confused and then end up mixing spaces and tabs, which of course goes horribly wrong when someone with a different tab length views your code.
And of course I use always 2 spaces per TAB, the default option.
