Search found 213 matches
- 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 ...
Re: UTF8
Thanks Sergey, I'll give this a try later today.
Yes, all these worked, thanks. Also used:
Which works too.
Yes, all these worked, thanks. Also used:
Code: Select all
SRichViewEdit1.ActiveEditor.InsertTextFromFile(FileName, TEncoding.UTF8.CodePage);
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 := ...