I'm trying to develop a text editor with spell checker capability. I can detect erroneous words successfully.
Many text editors underline (red color) the erroneous words like this.
How can I underline any word this way? Any TMemo, TRichEdit or TSynEdit solution is acceptable.
Related
I am using Delphi XE3's Translation Editor.
This is the screenshot:
The GUI is rather confusing as there are many columns I don't know their usages. What I can guess is the white cells are editable and I can input the translated contents, and set the status as "Translated".
I don't know what is the usage of "Previous 中文(简体, 中国)(original)" or "Previous (简体, 中国)(translated)".
The official document is at http://docwiki.embarcadero.com/RADStudio/XE3/en/Editing_Resource_Files_in_the_Translation_Manager. IT does not explain how to use the editor and what is the usage of the columns at all.
I see that XLIFF specification allows applying rich text formatting, and it even provides examples using xlf:b (bold) and xlf:i (italic). So that it can be used like this:
<source>A line of text in<pc type="fmt" subType="xlf:b">paragraph</pc>.</source>
What I can't find is how to correctly apply both bold and italic at the same time?
Any help greatly appeciated.
Good morning all.
I have a question about handle of TRichEdit.
In a TRichEdit I have a text with several riched formats (Bold, Italic, Underline) like this:
Can I have the possibility of know the style of each character in the Edit, for instance, the first 's' has no format, the first 'r' has a bold format, the second 'a' has italic format, and the fourth 'a' has underline format?
The purpose of this question is for convert this text to HTML tags. I tried many functions on Internet and no one works for me.
I appreciate your help so much.
Hi guys I'm looking for a text editor that can have the coloured bracket feature. I'm running sublime text and none of the plugins I use have that feature or they don't work. I use Ubuntu and would like a text editor friendly to my os. https://www.google.com/search?q=rainbow+braces+text+editor&espv=2&biw=1301&bih=681&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMI6-XywYzQxwIViHumCh31PQvk#imgrc=Q44WVZreWruUvM%3A is an example
Since FMX doesn't have an equivalent of TRichEdit, how can I output a differently colored text? I'm writing a console (as in a Quake-style console, to clarify) output visual control for my application, and I don't see any way to solve it, except to draw the text myself, complicated by many factors (like scrolling).
Now after thinking about it, since TTextLayout doesn't work as intended, I think that it can be done by creating an array of colored as needed TLabels in a TFlowLayout, but there are some things to consider: performance and memory usage, copy-pasting and word wrap. When I add a string to log, split it into strings so each string is of one color and for each string create a TLabel with text and color set accordingly.