Using the MultiPaste Tool

From RAD Studio
Jump to: navigation, search

Go Up to MultiPaste


You can access the MultiPaste tool from Edit > MultiPaste.

The MultiPaste tool allows you to modify the text in the Clipboard, by specifying a prefix and a suffix for each line, and paste it to the Code Editor.

How to Use the MultiPaste Tool

We provide an example to show how to use the MultiPaste tool. This example shows you how to add html text to a memo component. Taking as a reference the html code presented below.

<html>
<head>
<title>This is the title!</title>
</head>
<html>
<h1>This is ASP.NET page!</h1>
</html>
  1. Copy the html code in the Clipboard, right-click and copy, or CTRL+C.
  2. Open the MultiPaste window going to Edit > MultiPaste.
    The copied html code appears in the Preview section of the MultiPaste window.
  3. Add the HTMLStrings.Add(' string to the Text before each line field.
  4. Add the '); string to the Text after each line field.
    The Preview section shows now the new text to add the html code to a memo component.
    MultiPaste.png
  5. Press the OK button to paste the text of the Preview section in the Code Editor.

Additional Options

  • Check Escape Quotes if you want to escape quotes to paste the text as a string, see MultiPaste for further information about the two options.
  • Check the Trim Clipboard Contents if you want to remove the leading and trailing white spaces from each line of the Clipboard text.

See Also