How is it, that Qeditor uses 4 Spaces (0x20),
instead of 1 Tab (0x09)

Or in another way,
why doesn't Qeditor use 0x09h for Tab,
instead of Spaces :confused:
Posted on 2003-03-02 05:37:35 by The SharK
Probably Hutch process the WM_KEYDOWN and when tab is entered, the result in the editbox is 4 spaces. Tab's spacing varies from some editors to others, that's all that i could say. Thus spaces are better.
Posted on 2003-03-02 08:36:24 by roticv
Quite opposite IMHO

spaces are stupid they take more bytes in the text file
and can not be easy recognized as "tabs"...

actually tabs are not the same as spaces... i just can not understand why somebody will ever want to mix them

hard tabs are the only natural inteligent solution ... please excuse... any normal editor has an option to set the tabs size so i can resize/rearange them on the fly...can not do the same thing for spaces even if i setup my tab size to 1 or 2 spaces editor can recognize them as such and will never consider 8 space tab as 4x2space tabs !

The only reason i see for "convert tabs to spaces " stupid proliferation is the usage of the "rich edit controll" in many projects, it looks like this control helps or forces ppl doing this stupid thing.
Posted on 2003-03-02 08:47:47 by BogdanOntanu
But I like to use TAB, as 0x09
instead of 0x20, 0x20, 0x20, 0x20

ONE byte, instead of FOUR.

I sure miss that in Qeditor.
But maybe there is some adjustment
in the program, which I have missed :confused:

As it is now, I combine using NotePad to write
the program, and Qeditor to assemble it :(

Btw.
Hi BogdanOntanu I see you've changed your Avatar,
seems you've got yourself a new haircut.. :tongue:
Posted on 2003-03-02 15:26:58 by The SharK

Bogdan, I have to agree with roticv on this.. because I'm of the kind "What You See Is What You Get", and I can't really stand Tabs.
Spaces occupy more memory? Well, I'll buy a bigger hard disk. ;)
Posted on 2003-03-02 15:48:38 by Maverick
I actually coded the characteristic into QE to avoid the endless problems with TAB formatting. There are a number of different formats for TAB and if your editor is not set for the assumptions in the text, you get a very messy looking display for it.

The other factor is that almost exclusively no-one uses TAB in a consistent manner and usually mix tabs and spaces freely. QE is used in places where TAB characters are very unreliable such as web pages where in contrast, spaced text always displays correctly.

Regards,

hutch@movsd.com
Posted on 2003-03-03 06:41:07 by hutch--
hmm...

I guess I have to get used to use those spaces:)

I have the habit of mixing them, to get the code
leftaligned so maybe 2 or 3 TABs, and then a few
spaces.
I must be consistent, then I guess there won't
be any problems making the code look nice ;)
Posted on 2003-03-03 16:00:33 by The SharK
I always use tabs :/

relying on spaces is bad when dealing with languages where whitespace matters such as python. (and lots of others)

also pressing tab once is much more convenient than pressing space 3 to 4 times
Posted on 2003-03-03 16:10:47 by Hiroshimator
GO TABS!
Posted on 2003-03-03 16:17:46 by comrade
Hi Hiroshimator !


I think we should ask Hutch, to make a button,
so that we can choose to use either TABs or SPACES :alright:


That would do the trick, of course I can choose to use
another editor, but I prefer Qeditor:)
Posted on 2003-03-03 16:18:02 by The SharK
strangely I usually resort to notepad :/

old habits don't die fast I guess
Posted on 2003-03-03 16:28:29 by Hiroshimator
Yep, that's what I do too,
and then I use Qeditor to assemble the program:)
Posted on 2003-03-03 16:31:17 by The SharK
I usually make 1 batch file and have 1 main file that groups the others via includes
Posted on 2003-03-03 16:53:47 by Hiroshimator
So you you're not a great fan of .rc files and such....
I too like 1 main file:alright:
Posted on 2003-03-03 16:58:16 by The SharK
I am a fan of notepad :grin:
Nice and simple tool for programming :stupid:
Posted on 2003-03-04 07:08:58 by roticv
Shark,

I am back at home now so I tested something I left in QE so you could insert tabs if you needed.

Use Ctrl+tab on a normal US english keyboard to insert tabs. Press TAB for the spaced substitute for tab.

Regards,

hutch@movsd.com
Posted on 2003-03-06 04:32:34 by hutch--

Use Ctrl+tab on a normal US english keyboard to insert tabs. Press TAB for the spaced substitute for tab.


Why dont you add a option to select tabs or spaces?

CTRL+TAB is worse to type :/

BTW, vim is all I need for programming :)
Posted on 2003-03-06 04:43:49 by bazik
Hi Hutch,

Yep, I see that CTRL+TAB makes 0x09
but one button instead of two would
be better, as Bazik suggested via a menu:)


Hi Bazik,

I would take a look at VIM ;)
Posted on 2003-03-06 05:52:24 by The SharK
The Shark,
Make a poll, it will be very interesting for IDE writers.

I prefer TABS (properly used) but the problem is you have to stick to a particular editor. (there is a mess in the editors' world respect to the managing of 09h)

Best Regards,
Posted on 2003-03-06 06:43:01 by pelaillo
Hi pelaillo !

Yes, that's a good idea,
I have made one poll in the HEAP area thanks :alright:
Posted on 2003-03-06 08:26:46 by The SharK