# Edit Menu

The edit menu has the usual Windows edit functions.
For a full list of editing keyboard shortcuts see Keyboard shortcuts.

Paste as ASCII: This option replaces many Unicode characters with ASCII equivalents and removes all characters that are not ASCII 0-127 to make it safe to load into MMBasic.
The main use for this is pasting from Word documents or PDFs where 'smart quotes' can be used. They cause much grief if they are allowed into your code. Any hard TABs in the pasted text will not be converted to space characters even if that option is set. To convert these TABs, do a "Format"

If you drag and drop text from another application, the text gets inserted at the cursor, the same as copy and paste.
If you drag and drop a file (from Explorer), you cannot drop it onto the text area. You can however, drop it onto the toolbar area and the file will open up in a new tab.

Insert file: Lets you browse for a file to insert at the current cursor location. There is an option in MMEdit.inf "Insert at EOL = 1". If set the file gets inserted at the end of the current line rather than the cursor position.

Find/Replace: ^F Opens a Find dialog. As well as the usual 'find next', there is a 'find all in open files'. This option will list every line that contains the search text in all the currently open files. Even if you only have one file open, it can be convenient to see at a glance how often the searched text is used. Use this before doing a global search and replace.

The last 10 searched terms are available.

Quick Find F11: Highlight a word then select Quick find to search the current document and list all occurrences of the selected word. This is similar to "Find in all" but quicker to do.
The word can be a command, variable or user function. It searches for whole words only and if your selection doesn't include any trailing $,% or !, that character will be added for you.

Prefill start of line: If you need to add the same text at the start of a series of lines such as when entering DATA or POI ASSEMBLE etc, select the desired text and copy it to the clipboard then select "Prefill". Whenever <ENTER> is pressed, a new line starts with the selected text. If you select a series of lines after saving the prefill text but before selecting "prefill", the prefill text will be added to those lines as well as any new line.

Postfill end of line: This works the same as Prefill but inserts the saved text to the end of the line(s). This is not as useful as Prefill.

To stop prefilling or Postfilling, select "Cancel Prefill/Postfill

Last edited: 12 February, 2023