[Lazarus] SynEdit: AutoIndent with Tabs instead of spaces, is this possible?
lazarus at mfriebe.de
Mon Sep 24 19:27:49 CEST 2012
On 24/09/2012 18:21, Bernd wrote:
> I cannot find any way to convince SynEdit to indent the next line with
> a tab when I press enter on an indented line, it will always use
> spaces, even if eoTabsToSpaces is false and eoTabIndent is true and
> the previous line is intended with a Tab. Pressing Tab to indent works
> as expected but not the AutoIndent. I need to edit Makefile templates,
> they may not be indented with spaces or it will be a syntax error. The
> only way I have found is to disable AutoIndent completely or do a
> string replace after editing.
Assuming you talk about the real auto indent. Not the new codetool smart
indent (that can add extra indent, after a begin)
You can select 1 of the 3
"space/tab" as previous line
press F1 the wiki describes them.
in short, tabs yes, IF the current line is also indented by tabs. Then
the tabs of the current lines are copied
More information about the Lazarus