Lazarus

Programming => Packages and Libraries => SynEdit => Topic started by: pcurtis on November 24, 2020, 10:00:57 am

Title: [SOLVED] SynEdit search / compile demo
Post by: pcurtis on November 24, 2020, 10:00:57 am
Hi All,

two things

1. How do I search / find in Synedit, and
2. How do I compile the demo app in c:\lazarus\components\synedit\test\

Thanks in advance.
Title: Re: SynEdit search / compile demo
Post by: Martin_fr on November 24, 2020, 11:53:08 am
c:\lazarus\components\synedit\test\ is the testcase.

There is an lpi file in that folder that you can open, and then run with F9.
But that is probably not what you want

c:\lazarus\examples\SynEdit\....
has several demo apps. All with an lpi file that you can open, and run in the IDE.

On linux those folders are write protected, and you should copy them first to your home folder, and then open the project in the copied folder.

c:\lazarus\examples\SynEdit\SearchAndReplace\SynEditSearchExample.lpi



Some info on SynEdit
https://wiki.lazarus.freepascal.org/SynEdit
Pay attention to
https://wiki.lazarus.freepascal.org/SynEdit#Logical.2FPhysical_caret_position

And some info on the search/replace options
https://wiki.lazarus.freepascal.org/Editor_Macros_PascalScript#Caller:_TSynEdit

Title: Re: SynEdit search / compile demo
Post by: pcurtis on November 24, 2020, 12:35:20 pm
Thanks.
TinyPortal © 2005-2018