Recent

Author Topic: [SOLVED] SynEdit search / compile demo  (Read 1436 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 742
[SOLVED] SynEdit search / compile demo
« 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.
« Last Edit: November 24, 2020, 12:55:07 pm by pcurtis »
Windows 10
Laz 2.0.10
FPC 3.2.0

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7516
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit search / compile demo
« Reply #1 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

« Last Edit: November 24, 2020, 12:00:32 pm by Martin_fr »

pcurtis

  • Hero Member
  • *****
  • Posts: 742
Re: SynEdit search / compile demo
« Reply #2 on: November 24, 2020, 12:35:20 pm »
Thanks.
Windows 10
Laz 2.0.10
FPC 3.2.0

 

TinyPortal © 2005-2018