Recent

Author Topic: Synedit wordwrap  (Read 252 times)

Tommi

  • Full Member
  • ***
  • Posts: 204
Synedit wordwrap
« on: November 17, 2022, 11:50:00 pm »
Hi,
is there in synedit any wordwrap option ? I cannot see it but it seems very strange that a so big and complex library has no word wrap.

Thank you

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8600
  • Debugger - SynEdit - and more
    • wiki
Re: Synedit wordwrap
« Reply #1 on: November 18, 2022, 12:40:47 am »
Yes, there is. But it's kind of beta... in progress.

Code: Pascal  [Select][+][-]
  1. uses SynEditWrappedView;
  2. begin
  3.   TLazSynEditLineWrapPlugin.Create(ASynEdit);

Tommi

  • Full Member
  • ***
  • Posts: 204
Re: Synedit wordwrap
« Reply #2 on: November 18, 2022, 01:10:16 pm »
Ok, thank you. And how to disable it after it has been enabled?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8600
  • Debugger - SynEdit - and more
    • wiki
Re: Synedit wordwrap
« Reply #3 on: November 18, 2022, 01:43:09 pm »
That isn't implemented yet....

You may be able to do something like
Code: Pascal  [Select][+][-]
  1. FLineMapView := aSynEdit.TextViewsManager.SynTextViewByClass[TSynEditLineMappingView];
  2. aSynEdit.TextViewsManager.RemoveSynTextView(FLineMapView);
and add it back later...
Mind that is only the visualization... So the rest is still running in the background.

I have not tested this.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8600
  • Debugger - SynEdit - and more
    • wiki
Re: Synedit wordwrap
« Reply #4 on: November 18, 2022, 01:44:48 pm »
Depending on what you need you may want to checkout AtSynEdit.
It has had wrapping for much longer...

 

TinyPortal © 2005-2018