Search found 213 matches

by standay
Mon Jun 28, 2021 1:13 pm
Forum: Support
Topic: Multiple word and syntax highlighting
Replies: 1
Views: 4361

Multiple word and syntax highlighting

With TRichViewEdit, I'd like to be able to have multiple occurrences of a given word highlighted, as well as some basic syntax highlighting too. On both of these, I only need and want it marked within the displayed (visible) text, not the entire text. Unmarking either multiple words or syntax would ...
by standay
Sun Jun 20, 2021 11:49 am
Forum: Support
Topic: UTF8
Replies: 2
Views: 4870

Re: UTF8

Thanks Sergey, I'll give this a try later today.

Yes, all these worked, thanks. Also used:

Code: Select all

SRichViewEdit1.ActiveEditor.InsertTextFromFile(FileName, TEncoding.UTF8.CodePage);
Which works too.
by standay
Fri Jun 18, 2021 3:31 pm
Forum: Support
Topic: UTF8
Replies: 2
Views: 4870

UTF8

What is the simplest way to load a file with specific encoding? On most editor components I use I can do it this way: memo.Lines.LoadFromFile('test.txt',TEncoding.UTF8); What I did with the SRichView was this: ms := TStringStream.Create('', TEncoding.UTF8); ms.LoadFromFile(FileName); ms.Position := ...