"Ads by Goooooogle" links provided by Google.com, which has sole control over all advertising content it displays on this site.

Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2007 by Barry MacDonnell. All Rights Reserved.

Page updated Apr 14, 2007

HILITE - a suite of macros -

  • HiLiteDoc.wcm - highlight words based on a separate word list or words input from a menu
  • HiLiteMenu.wcm - highlight the word under the cursor
  • HiLiteNew.wcm - highlight selected text in different colors in the same document
  • HiLiteRem.wcm - remove all (or just some) highlighting from a document with an option to remove the underlying highlighted text
  • HiLiteRC.wcm - replace the color of existing highlights (either all highlights or specific highlights)

Great for annotating or marking up drafts or other documents using highlighting.

See also HILITERL - Add highlighting to redlined text

Download HILITE.ZIP (05/27/06; 80,001 bytes)

Compatible with WordPerfect 8,9,10,11,12,X3

Downloading, Documentation, Modifications, and Support

Contains 5 macros:

HiLiteDoc.wcm (v1.6)

Highlight words or short phrases (63 characters or fewer) in a document based on a master list of words contained in a separate document or entered via a pop up menu. (New in version 1.4: An option on the first menu allows choosing from one of 10 highlight colors.)

One of the options in HiLiteDoc ("Automatic - Use words in a separate file") requires a separate user-created WP document containing search words. Please see the simple instructions at the top of the macro's code (open the macro as a normal document or use QuickView Plus), or click on Help from the menus.

Some of the macro techniques used: (1) Employ a separate document file (*.WPD) to sequentially read short strings of data from, then switch documents and search for the strings. Employ menu entry fields to do the same thing. (2) Use a help dialog in a menu, accessed via a pushbutton. (3) Change information on a menu without using callbacks. In HiLiteDoc, the top half of the main menu changes accoding to a previous menu selection or if an "Other Menu" button is pushed on the current menu. (4) Write out information to a separate WPD file.

Download HILITE.ZIP


HiLiteMenu.wcm (v1.02)

A "2-key" macro that lets you highlight the current word or the currently selected text with a choice of colors, then return the highlight color back to the default. This macro is based on the HiLiteNew macro below, but may be more useful to those who prefer using the keyboard to the mouse. (New in version 1.01: Menu options let you delete the highlighting uder the cursor or in a selection of text, or let you delete all highlighting in the document.)

TIPS:

  • This macro uses a PushButton menu, but is especially useful if used as a "two-key" macro by assigning the macro to a convenient key combination, such as <Alt+C> (for "color"). Then when you press these keys, the macro will pop up a menu, whereupon you can press a color selection key (such as "g" for "green") or click the appropriate menu button with your mouse.
  • See the QwikSet archive for a companion macro that can change font size and other attributes (small size, superscript, redline, etc.) with two keystrokes.
  • Advanced users: You can add or modify the colors in the Switch() command. Be sure to edit the menu with the Dialog Editor to add/change push buttons.

Download HILITE.ZIP


HiLiteNew.wcm (v1.0)

Applies a user-specified highlight color to a selected block of text, then returns the highlight color back to the default (usually, bright yellow). This makes it easy to apply a different highlight color to certain text, but retain the default color when highlighting is next applied with the Highlight toolbar button.

The WordPerfect program "remembers" which color was last used, so you can always reset the Highlight button's default color manually, but this macro makes it easier -- especially siince WordPerfect does not reset the default highlight color between sessions. You can modify the macro's next-to-last command to choose any default color.

TIPS:

  • Several copies ("clones") of this macro, each with a different highlight color and each assigned to its own toolbar button or keystroke combination, allows the quick application of different highlight colors to various parts of the same document without impacting your default highlight color. (The included macro is set to apply bright green highlighting to selected text.)
  • To make copies of the macro that will apply different highlight colors, see the instructions in the comment area at the top of the macro's code.
  • If you select the same highlighted item and play the macro again, the highlighting (only) will be removed. It acts as a "toggle" switch.
  • To play the macro(s) with a toolbar button or keystroke, click here for instructions. To edit the default toolbar button's icon, click here (note the tip about using Corel Presentations to use a more extensive color pallette or create buttons with shading, fills, etc.).
  • Here's an example of a "Highlighting" toolbar you could create yourself with Tools, Settings, Customize, Toobars, Create, then click Macros, Add Macro and add buttons/macros for each color. See the comments in the macro for more information. (Also see the "remove highlighting" TIP at the bottom of this column.)

Highlighting toolbar

Download HILITE.ZIP


HiLiteRem.wcm (v1.02)

Removes highlights and (optionally) removes the highlighted words. HiLiteRem also can be used to clean up documents containing comments, annotations, or other text that have been marked up with highlighting.

Version 1.01 revised the menu. Now when you choose the option to pause at each item found, a small dialog lets you (1) remove just the highlighting from the item, (2) remove both the highlighting and the highlighted text, (3) skip the item, or (4) quit the macro. This should make it easier to selectively edit a marked-up document.

Download HILITE.ZIP


HiLiteRC.wcm (v1.04)

Replaces the color of existing highlighting in the document with a different color, either the current color that is specified on the WordPerfect toolbar (or Tools menu) or the color specified on the menu that pops up.

A menu option allows pausing to confirm individual replacements.

Download HILITE.ZIP


TIPS:

Do you often need to remove highlighting from a single highlighted word or section of highlighted text?

WP has a built-in "Remove Highlighting" feature that you can add to a toolbar as a new button.

The button will be active only if the cursor is directly on some highlighted text or if a selected block of text contains highlighting.

Here's how to add this feature to a toolbar:

  • Right-click the toolbar and choose Edit from the context menu. This will display the Toolbar Editor.
  • Under the Features tab, choose Tools from the "Feature categories" drop list.
  • Scroll down in the "Features" list and choose Remove Highlighting.
  • Click on the "Add Button" button. When the new button appears on the toolbar you can use your mouse to drag it to a new location.
  • Click OK, then Close.

Do you need to print a document without the highlighting?

Click Tools, Highlight and de-select the option, "Print/Show". Enable this option following the print run.

Page Top Disclaimer, Distribution, and Privacy Policies