Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

behavior like Notepad++ 8 years 10 months ago #7466

  • Vbxler
  • Vbxler's Avatar Topic Author
  • Visitor
  • Visitor
Can I get with settings a behavior like in Notepad++:

1)
If I, as seen in Grafik_00, set the caret to the left of
the variable and press Shift+Tab actuated, then does not happen.
If I do this in Notepad++, then the variable is shifted
by the tab-width to the left. (Grafik_03)

2)
The same starting point, I mark the area to the left of
the variable, as shown in Grafik_01, press the Tab-key,
so I get as result a further tab to the right(Grafik_02).
If I do that with Notepadd++, I get as result Grafik_03.

Thanks for the help!

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7467

  • Martin - Lazarus Development Team
  • Martin - Lazarus Development Team's Avatar
  • Visitor
  • Visitor
As for point 2, try disabling "Tab indent blocks" (Options > Editor > Tab and Indent). Then the selection will be replaced by a tab.
This may not be identical to N++, but probably closer to it.

Otherwise write a macro wiki.lazarus.freepascal.org/Editor_Macros_PascalScript and assign it to tab/shift-tab

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7468

  • Vbxler
  • Vbxler's Avatar Topic Author
  • Visitor
  • Visitor
Hi Martin, thanks for your information!

Unfortunately I can not disable 'Tab indent blocks', as it is very
important to me. I suspect that this feature is not programmed.
But that is not so important, would be nice to have,
because it's easier when you change the editors all the time.

I think it is very nice that Lazarus developers are here to visit. :)

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7469

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100

Vbxler wrote: Hi Martin, thanks for your information!

I think it is very nice that Lazarus developers are here to visit. :)


++1
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7473

  • fredvs
  • fredvs's Avatar
  • Visitor
  • Visitor

Vbxler wrote:
Hi Martin, thanks for your information!

I think it is very nice that Lazarus developers are here to visit. :)

++1


++1000*1000

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7483

  • Martin - Lazarus Development Team
  • Martin - Lazarus Development Team's Avatar
  • Visitor
  • Visitor

Vbxler wrote: Unfortunately I can not disable 'Tab indent blocks', as it is very
important to me.


You are aware that ctrl-i / ctrl-u can be used to (un-)intend the block?

Or write a macro in PascalScript (you can access the SynEdit and decide which function to call), then assign the macro to the tab key.

Please Log in or Create an account to join the conversation.

behavior like Notepad++ 8 years 10 months ago #7488

  • Vbxler
  • Vbxler's Avatar Topic Author
  • Visitor
  • Visitor
Thanks, I'll look at that again.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1