TCustomRichViewEdit.PasteMarkdown

<< Click to display table of contents >>

TCustomRichViewEdit.PasteMarkdown

Inserts text from the Clipboard at the position of the caret, processing it as Markdown.

function PasteMarkdown: Boolean;

(Introduced in version 24)

This method does nothing if the Clipboard does not contain a plain text.

Parameters for reading Markdown are in TRichView.MarkdownProperties.

This method is an alternative to PasteText: the both methods paste the same data (a plain text), but this method processes pasted text as Markdown.

Method type: editstyle editing-style method for insertion.

Return value:

True if Markdown was successfully pasted

See also methods:

CopyMarkdown;

InsertMarkdownFromFileEd;

InsertMarkdownFromStreamEd.

See also:

TRichView and Clipboard