On 31/12/2020 18:11, James Richters via fpc-pascal wrote:
Thanks for the info on SynEdit. Where can I find the synedit source related to
the clipboard?
I think the link you indtended ater 'See the code at.' Didn't come though, can
you pleaese send it again?
Sorry, I assumed SynEdit would be recognized as part of Lazarus (yes its
the fpc list, but the name may still be known). So I simply gave a file
location in the Lazarus source.
It can be found here:
https://github.com/User4martin/lazarus/blob/master/components/synedit/syneditmiscclasses.pp#L1674
Some of the code is specific to SynEdit (E.g. information on code-folding).
But ReadFromClipboard
https://github.com/User4martin/lazarus/blob/master/components/synedit/syneditmiscclasses.pp#L1699
checks for either flag being present, and that is all you need. => Then
the normal text, and line-ends in the text mark where each column ends.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal