Recent

Author Topic: Synedit EndOfTokenChr  (Read 238 times)

Aeternitas

  • New Member
  • *
  • Posts: 42
    • The Dark Forests Web
Synedit EndOfTokenChr
« on: August 07, 2020, 12:59:28 am »
Hi,

I have a working syncompletion, but there is a problem. The attribute EndOfTokenChr is ignored and when I select what I want all the strings are replaced until a space. I need to end it for example by bracket. How can I do it?

Thanx in advance for replies.

Edson

  • Hero Member
  • *****
  • Posts: 1084
Re: Synedit EndOfTokenChr
« Reply #1 on: August 07, 2020, 05:10:59 am »
For completion in SynEdit I recommend to use SynFacilCompletion: https://github.com/t-edson/SynFacilCompletion
Lazarus 2.0.6 - FPC 3.0.4 - x86_64-win64 on  Windows 8

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6592
    • wiki
Re: Synedit EndOfTokenChr
« Reply #2 on: August 07, 2020, 01:51:20 pm »
There are 3 completion plugins: https://wiki.lazarus.freepascal.org/SynEdit#Completion_plugins

You are talking about TSynCompletion ?
Then check TSynCompletion.Validate for what happens.

I think you can assign OnCodeCompletion, do modify the insertion bounds.


 

TinyPortal © 2005-2018