Disabling "Trim Trailing Spaces" should help you here.
But, a big WARNING: undo/redo has several bugs when dealing with tabs.

-Flávio

Now the long answer ;-)

First, "hard" tabs support is incomplete in SynEdit, even in the
latest official version (of SynEdit, and the component in Lazarus is
based on a quite old version).

The major problem here is "eoTrimTrailingSpaces" in Options, because
text is trimmed after every key press. So, disabling "Trim Trailing
Spaces" should at least preserve the tabs you explicitly typed/wrote.

The current official version of SynEdit has fixed most of the bugs
with tabs and remaining ones (that are known) only happen with
"TrimTrailingSpaces", but since we couldn't agree on the best fix for
"trim", for now we introduced a "end key jumps to nearest end" option.
TrimTrailing is disabled and SmartEndKey is enabled by default, btw.

Also, I've come to respect that people have different tastes for
indentation size (and thus at my workplace we standardized on using
tabs), so yes, I plan to fix the remaing tab bugs, and have an option
to "display" tabs and trailing empty chars. It would be simply a
subset of "show special chars" (which already exists) anyway.
Oh, and non-tabulated tabs :-/

Cheers,
Flávio


On 5/31/06, Matthijs Willemstein <[EMAIL PROTECTED]> wrote:
On Wed, 2006-05-31 at 19:08 +0300, ik wrote:
> On 5/31/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
> > What you you guys think of a new per project option (saving it in the
> > lpi or something), so that when you open a project that uses Tabs as a
> > codingi style, Lazarus will auto swich to using Tabs in the editor.
> > At the moment, it is up to the developer to remember to switch the
> > Editor Options.
>
> Thats a really bad idea !!
> I always use spaces, and I like that "tab space" will be only 2 chars,
> if you will force me to work with tabs and then the amount of spaces
> it takes, it will hurt the way I'm working and reduce the development
> time, and increase my nurves ;)
I can not help it, I have to react. :)
What is so bad about reducing development time?

Matthijs.
--
Matthijs Willemstein <[EMAIL PROTECTED]>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to