Click the Preferences button on the toolbar at the top to adjust RegexMagic to your tastes and habits.
Samples: Configures the edit box on the Samples panel. You can choose whether spaces and tabs should be indicated by small dots and >> signs, and whether line breaks should be indicated by paragraph symbols. You can also specify if line numbers should be shown in the left margin, and whether long lines should wrap at the edge of the edit box instead of requiring horizontal scrolling.
Regular Expression: Configures the edit boxes for entering the regular expression and the replacement text on the Regex panel. You can choose whether spaces and tabs should be indicated by small dots and >> signs, and whether line breaks should be indicated by paragraph symbols.
Use: Configures the edit boxes on the Use panel. You can choose whether spaces and tabs should be indicated by small dots and >> signs, whether the tab key should insert spaces or tabs, and whether line numbers should be shown in the left margin.
GREP: Configures the results display on the GREP panel. You can choose whether spaces and tabs should be indicated by small dots and >> signs, and whether line breaks should be indicated by paragraph symbols. You can also specify whether long lines should wrap at the edge of the edit box instead of requiring horizontal scrolling.
Tab Sizes: Specify the width in spaces of tabs in the edit boxes on the Samples, Regex, Use, and GREP panels.
Text Layout: In RegexMagic, a “text layout” is a combination of settings that control how text is displayed and how the text cursor navigates through that text. The settings include the font, text direction, text cursor behavior, text cursor appearance, which characters are word characters, and how the text should be spaced. You can select up to four different text layouts that are used for various parts of RegexMagic. The Regex text layout is used for edit boxes for regular expressions and replacement texts. The Convert text layout is used for the warning and error messages on the Convert panel. The font from the Convert text layout is also used for the regex tree on the Create panel. The editors on the Test, Debug, Use, and GREP panels all use the same text layout. You’ll likely want to select a monospaced text layout for this one, so that columns line up correctly. The Forum text layout is used to edit messages on the built-in user forum.
You can select predefined text layouts from the drop-down lists. Or, you can click the Configure Text Layouts button to show the Text Layout Configuration window to customize the text layouts.
Preserve state between RegexMagic sessions: With these checkboxes you can choose what RegexMagic should remember when you close it and restart it. Turning these on allows you to continue working where you left off. Turning these off allows you to instantly start with a clean slate.
Hide files and folders from GREP: The options “hide hidden files and folders” and “hide system files and folders” are turned on by default. These make all files and folders that have the hidden or system attribute set invisible to the GREP panel. Turn these options off if you want to grep through hidden and system files and folders.
Choose “use file masks to hide files and folders” to use traditional wildcard file masks to hide files and folders from the GREP panel. Choose “use regular expressions to hide files and folders” to use regular expressions to hide files and folders. Wildcards have to match the entire name of the file or folder to hide it. Regular expressions hide any file or folder with a name matched by the regex, even if the name is only matched partially. The regular expression “joe”, for example, hides all files that contain “joe” anywhere in the file name. The equivalent file mask using wildcards is “*joe*”. When using wildcards, “joe” hides files exactly named “joe” only.
In the “hide files” box you can enter a semicolon-delimited list of file masks or regular expressions. All files of which the names match one of these file masks are automatically skipped by the GREP panel. By default, the permanent exclusion masks are set to a regular expression that matches all backup files created by RegexBuddy, as well as temporary working copies of files created by EditPad Pro and MS Office. If you’d ever need to search through backup files or working copies, you will need to adjust the permanent exclusion file masks first.
The “hide folders” box works in the same way, except that the file masks you specify are tested against individual folder names. If the name of a folder matches one of these file masks then the GREP panel automatically skips that folder and any files or folders inside that folder. The default settings exclude __history, which is the folder name that RegexBuddy uses for backup files when you select the “hidden history” backup option. Also excluded by default is .svn which is the folder name that Subversion uses to cache data in each folder that you have added to version control.
Configure the colors used to highlight different parts of the regular expression and replacement text on the Regex panel. You can select one of the preset configurations at the top of the screen. To customize the colors, click on an item in the list of individual colors. Then click the Background Color and Text Color buttons to change the item’s colors. You can also change the font style with the bold, italic and underline checkboxes. At the bottom, a sample edit box will show what the color configuration looks like. You can edit the text in the example box to further test the colors.
Configure the colors used by the Samples panel to highlight marked and matched fields. You can select one of the preset configurations at the top of the screen. To customize the colors, click on an item in the list of individual colors. Then click the Background Color and Text Color buttons to change the item’s colors. You can also change the font style with the bold, italic and underline checkboxes.
At the bottom, a sample edit box will show what the color configuration looks like. RegexMagic supports up to 99 fields. Fields 11, 21, 31, etc. are highlighted with the color “field 1”, fields 12, 22, 32, etc. with “field 2”, and so on. The color will be used as is, dimmed, or underlined depending on whether the field was matched by the generated regular expression, marked manually, or both.
Configure the colors used by syntax coloring of the code snippets on the Use panel. You can select one of the preset configurations at the top of the screen. To customize the colors, click on an item in the list of individual colors. Then click the Background Color and Text Color buttons to change the item’s colors. You can also change the font style with the bold, italic and underline checkboxes. At the bottom, a sample edit box will show what the color configuration looks like. You can see the effect for several different programming languages. You can edit the text in the example box to further test the colors.
Configure the colors used by the results display on the GREP panel. You can select one of the preset configurations at the top of the screen. To customize the colors, click on an item in the list of individual colors. Then click the Background Color and Text Color buttons to change the item’s colors. You can also change the font style with the bold, italic and underline checkboxes. At the bottom, a sample results display will show what the color configuration looks like.