Forum > SynEdit

Synedit wordwrap

(1/1)

Tommi:
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:
Yes, there is. But it's kind of beta... in progress.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses SynEditWrappedView;begin  TLazSynEditLineWrapPlugin.Create(ASynEdit);

Tommi:
Ok, thank you. And how to disable it after it has been enabled?

Martin_fr:
That isn't implemented yet....

You may be able to do something like

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---FLineMapView := aSynEdit.TextViewsManager.SynTextViewByClass[TSynEditLineMappingView];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:
Depending on what you need you may want to checkout AtSynEdit.
It has had wrapping for much longer...

Navigation

[0] Message Index

Go to full version