ecLineStart;
ecChar(<acharacter>);
ecLineBreak;
Particularly convenient would be a way to declare an entire string instead of making a string one character at a time using ecChar, something along the lines of ecString(<somestring>) would be great. if there is no such facility then, consider it a suggestion/feature request. That would make editing macros a lot easier.
Maybe it be easier if the IDE shows a help window, with a generated list....That would be very convenient.
You can get this list in the source code:
components\synedit\syneditkeycmds.ppParticularly convenient would be a way to declare an entire string instead of making a string one character at a time using ecChar, something along the lines of ecString(<somestring>) would be great. if there is no such facility then, consider it a suggestion/feature request. That would make editing macros a lot easier.
This can be easily achieved by using macros with PascalScript using procedure InsertTextAtCaret(aText: String; aCaretMode : TSynCaretAdjustMode);
Edited:
see ecString in the command list
links to the wiki
https://wiki.lazarus.freepascal.org/Editor_Macros_PascalScript (https://wiki.lazarus.freepascal.org/Editor_Macros_PascalScript)
https://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros (https://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros)
There is one thing I'm curious about, ecLineStart, ecChar, ecLineBreak don't need to be prefixed with "Caller", why does InsertTextAtCaret need the prefix ?
QuoteMaybe it be easier if the IDE shows a help window, with a generated list....That would be very convenient.
In general, it would be wise not to create a separate window, but simply add them to the Completion Window.