Support Services
Customer Support Center
- Clay Martin
Overlooked Feature, Tips and Tricks
Selecting Stuff
Multi Edit lets you select blocks of code three ways, Line, Column and Stream. While you can select which form you want by checking the menu choice under Edit, there is another way. Begin a selection by clicking and dragging over a letter or two. Then while still pressing the left mouse button, click the right mouse button. This will toggle between the 3 modes.
Highlight Conditional Compilation Declarations
Let's say we have a language that has conditional compilation declarations, that begin with %ifd and end with %endifd. Since these can span many lines, we would like the change the text color so that they stand out. Here is how we can do that. First go to Tools-Customize-Language, select your language and press the Edit button. Then, on the lower left locate the Block Comments area. Most languages only have one set, like /* and */. So use the second set, in the Open 2 enter %ifd and in Close 2 enter %endifd. Next go to Tools-Customize-Extensions, select your extension and press the Edit button. Here we want to note, or select a color pallet using the … button in the Colors area. And last, we go to Tools-Customize-Colors, select the correct color pallet, and scroll down to Open/Close2 and select it. Now we can change the color, background, boldness or Italic for our conditional compilation declarations. Remember to hit the Save button (upper left) before exiting or the color changes will just apply to this session and not be permanent.
If you use Multi-Edit as a non programming text editor, think of this as a way to mark areas that need to be fixed/added to before the document is finished. You can come up with any fairly unique character sequence, like /* and */, and have those fix it later items stand out.
As an Example:
... we talked to /* get his name */ Captain about the incident....
Need to Use a DOS Command Shell Regularly?
Would it not be great to have it as a button on your tool bar. Here is how to do it. You go to Tools-Customize-Toolbars/Toolboxes, select the bar you want to add it to (like Main) select Edit. Then position the highlight near where you want the button and press Insert. Then, in the dialog to select a command, do a search for Command Shell. You can then add that to your tool bar by pressing the Select button , then Ok/Close back out. The button does not have an icon, but small text that says Command shell. Of course, you can use this method to add any command usually found on a menu or just as a key combination to a tool bar. I found that I use Select All enough it was worth adding to the main tool bar. If you have lots of space, get creative.
Dual Monitor Problems
If you use a dual monitor, and then go back to a single monitor sometimes you can lose a dialog or two. This is because the position Multi-Edit remembered for the dialog is no longer in the visible range of the one monitor. The fix is easy. Go to Macro-Run, then type ResetDialogPos and press the OK button.
Auto Save is Driving Me Crazy
Sometimes the auto save can be a pest, and save files you are not ready to save. How can you disable to auto save? Go to Tools- Customize- Files- Auto save. Then to disable Autosave, set Seconds of keyboard inactivity and Absolute interval in seconds to 0. Multi-Edit will also save all files when you switch to another program, if Save files when switching tasks is checked. So if you worry your email client might grab focus and force a save, uncheck this option.
Lining stuff up
Let's say you have a few lines of code (legacy of course, you would never do this) that looks like the code below. Pretty sloppy isn't it? What if it was 30 lines?
TStr1 = "One" + "Alpha";
TStr2 = "Two" + "Beta";
TStr3 = "Three" + "Charlie";
TStr4 = "Four" + "Delta";
Well we can clean this up quick. Just select the block of lines and then select Edit-Block Operations-Align Operators. That would give us the following:
TStr1 = "One" + "Alpha";
TStr2 = "Two" + "Beta";
TStr3 = "Three" + "Charlie";
TStr4 = "Four" + "Delta";
Note the equal signs were aligned and the positions of the equal characters are set to the column of the rightmost. Now if we want to align the plus-signs, or if we did not want the equal signs aligned we can switch the select method into column mode, and select enough columns over all four lines to encompass the plus signs and any other characters that get in the way. Then execute the align operators again and we get this:
TStr1 = "One" + "Alpha";
TStr2 = "Two" + "Beta";
TStr3 = "Three" + "Charlie";
TStr4 = "Four" + "Delta";
Clay Martin, Technical Support
Multi Edit Software, Inc.
support@multieditsoftware.com
Input Your Suggestions in the Forum:
http://www.multiedit.com/forums/viewforum.php?f=7
**Please note that you can review/search
through all forum topics,
but to submit a post you must register on the forums.