Indenting the first line only of a paragraph

I want an editor that will indent the first line only of each paragraph. I am using Delphi Pro 12. and 13, and the most recent release of TMS FNC UI components. When using either VCL and FMX, the horizontal ruler does not properly set the indentation for the rich editor. I enabled Show Hanging indent. Then I sent LeftIndex to 50 and kept hanging indent to 0 the form designer. Then I ran the form. The caret was not indented, even after I typed content. I had to select the content and manually set the top slider to indent the text.

When I typed more text than can fit in the editor, the paragraph wrapped to the left indent value instead of the left margin. I get the same behavior when using the VCL TAdvRichEditor. Am I doing anything wrong or is this a bug?

Here is a picture.

At this moment, the TTMSFNCRichEditor (and also the TAdvRichEditor) do not have the feature of a hanging indent.
The TTMSFNCRichEditorHorizontalRuler has the capability to show a hanging indent selector optionally (by default it is turned off) in case users would want to bind it to other edit controls that might have this feature.

Adding a hanging indent capability to TTMSFNCRichEditor is on the feature request list for consideration to add this in a future update.

That's disappointing.

Two questions. What other edit controls implement this feature? Do you have a time frame for its implementation in these editors?

Also, I have the TWXHTMLMemo component. I know I can add HTML to first-line indent text, and I would place this at the start of the document. However, a user can accidentally delete the html by pressing back space one time too many. I noticed that the component inserts html style code as a span element inside each paragraph tag pair. Is there any way to add first-line styling code in this span?

Hi,

In the current state of TTMSFNCWXHTMLMemo you cannot keep the first-line indent if somebody deletes it. To overcome this, we added a new CustomCSS public property that will become available with the next update.

With the new version you'll be able to do something similar:

procedure TForm1.FormCreate(Sender: TObject);
begin
  TMSFNCWXHTMLMemo1.CustomCSS := 'p {text-indent:20px}'; 
end;

The next release is expected to happen next year. We sent you an incremental source update as private message.