# File Menu

New: Starts a new document. If the option is set, the new document is populated with a header. You can edit this header and save it using "Save new file intro". If you prefer blank files, there is an option to start with a blank document. New documents are given the name "untitled.bas".
You can send them to your devices with that name but they will be deleted from you PC when MMEdit exits. For any "untitled.bas" file still open when you close MMEdit, you will be prompted to "Save As" if you want to keep them.

Clone: This creates a new file which is a copy of the current file. Useful for major changes where you wish to keep the old file intact.

Open: Open an existing file in a new tab. You can also open a file by dragging from Windows Explorer to the toolbar area (above the edit window or onto the desktop shortcut.
If MMEdit is shut down when you drag a file to the desktop shortcut, MMEdit will open with that (or those) file as the only files open.

Recent: saves the last 10 files opened.

Save: saves the currently selected file.

Save all: saves all open files that have been modified.

Snapshot. This saves a copy of the current code with the date appended to the filename. It is saved in the same folder as the original file.

Save as:
Save selection as: Saves the selection or full code under a new name. (These two will get rolled into 1 menu item)

Save as RTF: Save the selection or full code as RTF and opens you default RTF viewer. This allows printing and pasting into documents in colour.
You will be given the option of saving with line numbers. This is useful if you want to refer to sections of the code such as in a tutorial.
If you do use that option, readers of your document will not be able to copy and paste your code into MMEdit and have a working program so only use line numbers if really needed.

Format for TBS forum: Formats the selection and copies to the clipboard ready for pasting to TheBackShed forum complete with the required [CODE] tags.

TBS in Colour: For added readability, code fragments can be posted to TheBackShed in colour. The required [QUOTE] tags are included.

Format as HTML: Formats the selection and copies to the clipboard ready for pasting to a web page. This was used to create examples in the MMBasic syntax help files.

Save new file intro: saves the first 50 lines of the current document to be used as the default new file text.

Revert to saved: Reloads the current file from disk.

Print: Prints the document. If the display is set to show keywords in uppercase, they are also printed in uppercase. There are a few options in the MMEdit.inf file which can be altered to better suit your printer. Only alter the MMEdit.inf file with MMEdit closed or your changes will be lost.

Preferences: Many options can be set here but there are other options that require editing the MMEdit.inf file. More of the settings will gradually be available in the preferences dialog.

Close: Closes the current file only.

Close all: closes all currently open files.

Exit: saves a list of currently open files before closing. This allows MMEdit to start with the previous files open again.

Last edited: 12 September, 2022