Difference between revisions of "Talk:SynEdit"
From Free Pascal wiki
Jump to navigationJump to search (Created page with "= Repl = var p1,p2: TPoint; begin p1 := SynEdit.LogicalCaretXY; p2 := SynEdit.LogicalCaretXY; p2.x := p2.x + UTF8CharacterLength(@SynEdit.LineText[p2.x]); // ...") |
(→Repl) |
||
Line 8: | Line 8: | ||
SynEdit.TextBetweenPoints[p1,p2] := ''; | SynEdit.TextBetweenPoints[p1,p2] := ''; | ||
− | Bad example. What it must do? replace One char with empty string? Show example how to replace 4 chars with S string. | + | Bad example. What it must do? replace One char with empty string? Show example how to replace 4 chars with S string. [[User:Alex22|Alex22]] 03:55, 12 June 2014 (CEST) |
Revision as of 03:55, 12 June 2014
Repl
var p1,p2: TPoint; begin p1 := SynEdit.LogicalCaretXY; p2 := SynEdit.LogicalCaretXY; p2.x := p2.x + UTF8CharacterLength(@SynEdit.LineText[p2.x]); // byte len of char AFTER current caret SynEdit.TextBetweenPoints[p1,p2] := ;
Bad example. What it must do? replace One char with empty string? Show example how to replace 4 chars with S string. Alex22 03:55, 12 June 2014 (CEST)