Before you continue with the rest of this tutorial, copy the file: MASM6.syn from the C:\Masm615\TextPad directory to the \TextPad4\System directory. (It will probably be located in C:\Program Files, but you may have selected a different location when you installed TextPad.) |
Start TextPad and close the default document window. From the Configure menu, select Add Document Class. This starts the Document Class Wizard. Enter MASM in the edit box:
Click Next, and enter *.asm when prompted for Class Members:
Click Next, and check the Enable Syntax Highlighting selection, and select MASM6.syn from the drop-down list:
Click Next. And verify your selections on the following panel:
Click Finish to close the Wizard.
Next, select Preferences from the Configure menu, and select MASM in the list box on the left. Make the following optional selections in the right-hand pane:
You can optionally customize the colors, fonts and other settings. You do that by expanding the "+" sign next to MASM in the list box on the left. For example, I like to set my tab stops to columns 5, 30, and 40. When you're finished with customizations, click OK to close this window.
Open an ASM file from the File menu, and note how syntax highlighting has been added to the program. Here's an example, using the Csum.asm program from Chapter 8. Isn't that cool?
You're all done!