Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

Editor and usage of Tab characters

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm a bit confused about the Source Editor settings, and the actual behaviour of Tabs in the editor. I switched one project from Spaces to Tabs to try it out

indenting a single line by using the Tab key works correctly. As you can see in the attachments the tab character is shown with the >> symbol.

But when I do Block Indentation - also using the Tab key, then ALWAYS spaces are inserted, instead of the Tab characters. Is doesn't seem correct, because I specifically set the indentation equal to the Tab size. I also set the Indent method to Space/Tab. From the help text on the wiki, Tab characters should be inserted (at least that is how I understood it).

If I understood in wrong, then what is the difference between Indent method "Spaces" vs "Spaces/Tabs"?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-IDE Options.png Type: image/png Size: 21777 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110915/9b8ec393/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Source Editor.png Type: image/png Size: 3162 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110915/9b8ec393/attachment-0003.png>

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
Hi, I'm a bit confused about the Source Editor settings, and the actual behaviour of Tabs in the editor. I switched one project from Spaces to Tabs to try it out indenting a single line by using the Tab key works correctly. As you can see in the attachments the tab character is shown with the>> symbol. But when I do Block Indentation - also using the Tab key, then ALWAYS spaces are inserted, instead of the Tab characters. Is doesn't seem

Yep that needs to be implemented.

the "block indent" type (despite the name) currently refers to what happesn if you press return (and if you use the editors, not codetools indenter)

Feel free to add a feature request on mantis, please

Show quoted text 19 lines
correct, because I specifically set the indentation equal to the Tab size. I also set the Indent method to Space/Tab. From the help text on the wiki, Tab characters should be inserted (at least that is how I understood it). If I understood in wrong, then what is the difference between Indent method "Spaces" vs "Spaces/Tabs"? Regards, - Graeme - -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110915/dbebe105/attachment.html>

Reply by email

Graeme Geldenhuys
to Martin
Martin wrote
Yep that needs to be implemented.

Thanks. Reported in Mantis.

http://bugs.freepascal.org/view.php?id=20256

the "block indent" type (despite the name) currently refers to what happesn if you press return (and if you use the editors, not codetools indenter)

OK, then the wiki and Source Editor dialog caption is very confusing. I'll add your comment to the wiki, but I guess the wording in the dialog in Lazarus also needs to improve a bit.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email