Version 0.79d beta

• Forum
  • Messages
  • New Subject
  • Search
  • Charter
• Members
  • Subscribe
  • Connection
  • Options
  • Disconnect
• Info site
  • ast/php/MySql
  • HAPedit
  • Contact

Menu: Home | Forum | New Subject | Join | Connection

Thread of the message « The TABs thing »  
[Subject] Posted 05/21/2006 at 07:11 by rjenkins Down
Hi,
I've seen a few other posts regarding the 'tabs to spaces' thing & it making files larger.

I like indents while editing, but using spaces does add a lot of un-neccesary size to the files.

Rather than re-working the whole program to handle embedded tabs, how about an option to strip multiple spaces at the start of lines while SAVING the file (in PHP code etc. sections only) and replace with tabs, using whatever number of spaces = one indent level in the config?

This avoids any changes in the editor itself and (hopefully) would not be too complex a mod?

Thanks,
Robert Jenkins.
[Post a response to this message]  [Responses: 1 2 3 4 ][top of the page]
• [1/4] Posted 01/19/2007 at 19:07 by Daniel Up Down
Hi Robert,

you are right, this is not too complex, but I don't really think that it's required. The most important is the tab char at the middle of the line

Daniel
[Post a response to this message[top of the page]
• [2/4] Posted 07/03/2007 at 17:13 by Harvey SchmidlappUp Down
Daniel,

> you are right, this is not too complex, but I don't really think that it's
> required. The most important is the tab char at the middle of the line

I'm not sure I understand this response. For me, replacing tabs with spaces is a pain and just plain silly. What's up with that?

--
Harvey Schmidlapp

[Post a response to this message[top of the page]
• [3/4] Posted 01/20/2008 at 05:11 by MLorcaUp Down
The need to replace TABS by SPACES in a program exists because the SEARCH function works better with spaces than TABS, spaces are easier for the user to see and count, so replacement is a desirable feature in a text editor.

In most cases, the user has no possibility to enter TABS in a search field, because of the normal behaviour of the TAB key in Windows, which stand for "move to next field". Sometimes, the user needs to search for a text surrounded by TABs, but there is no way for the user to differentiate (visually) between several spaces and one or more TABs.

Hope this helps.

MLorca
[Post a response to this message[top of the page]
• [4/4] Posted 06/03/2008 at 04:06 by JoseUp     
So it is not possible to disable this feature


> The need to replace TABS by SPACES in a program exists because the SEARCH
> function works better with spaces than TABS, spaces are easier for the user
> to see and count, so replacement is a desirable feature in a text editor.
>
> In most cases, the user has no possibility to enter TABS in a search field,
> because of the normal behaviour of the TAB key in Windows, which stand for
> "move to next field". Sometimes, the user needs to search for a text
> surrounded by TABs, but there is no way for the user to differentiate
> (visually) between several spaces and one or more TABs.
>
> Hope this helps.
>
> MLorca
>


Jose
[Post a response to this message[top of the page]
[Previous] 1 [Next]
 
 

Menu: Home | Forum | New Subject | Join | Connection

Winter 2024 top of the page