What is PPViewText?

The main attraction of the PPViewText example plugin is its use of PowerPlant views for display (thus the "PP" in "PPViewText"). PPViewText uses the CMacPluginView class, which derives from PowerPlants LGrafPortView, to get this behavior.

Building and using PPViewText

68k Mac/CodeWarrior 9:

  1. In the "Examples:PPViewText:Macintosh" folder, open the PPViewText68k.µ project file.
  2. Select the "Project|Make" menu item.
  3. Copy the plugin (or an alias) "Examples:PPViewText:PPViewText68k" to the navigator Plug-ins folder.
  4. Quit and relaunch the Navigator, if it is running.
  5. With the Navigator (preferably 3.0b5 or above) open the file "Examples:PPViewText:Testing:PPViewTextExample.html".

PPC Mac/CodeWarrior 9:

  1. First, build the 68k project, as described in the first two steps of the 68k Mac section.
  2. In the "Examples:PPViewText:Macintosh" folder, open the PPViewTextPPC.µ project file.
  3. Select the "Project|Make" menu item.
  4. Copy the plugin (or an alias) "Examples:PPViewText:PPViewText" to the navigator Plug-ins folder.
  5. Quit and relaunch the Navigator, if it is running.
  6. If you had already placed PPViewText68k in the Plug-ins folder, use the Helpers panel in the General Preferences to select PPViewText as the Plug-in for the text/plain and application/text media types.
  7. With the Navigator open the file "Examples:PPViewText:Testing:PPViewTextExample.html".