Add Initialization Code
The next step in integrating Objective Edit is to add the initialization code. There are two sets of initialization code:
*One set of initialization code initializes the syntax highlighting by using the registry. Note that this is a generic implementation that can be customized to meet your specific needs. This code is added to the InitInstance() of your CWinApp derivative.
*The other set of initialization code is in your CDocument derivative’s handlers for moving files in and out of the CDocument’s m_Edit data member. These handlers are: OnNewDocument(), OnOpenDocument(), OnSaveDocument(), and SaveModified().
The Objective Edit tutorial in Chapter 7 describes the template code we recommend for these initializations.