Microsoft KB Archive/192575

= PRB: Modify of .H File From Project Not Using Syntax Coloring =

Article ID: 192575

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q192575



SYMPTOMS
If you open a project containing a header (.H) file, and modify it in the Project Manager, Visual FoxPro's Syntax Coloring feature is not used.



RESOLUTION
As a workaround, modify a .H file in the Program Editor, set the preferences to allow syntax coloring, and then save the preferences for all .H files. Remove all .H files from your project, and add them back in as program files.



STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
  Type the following in the Command window: MODIFY PROJECT HOME+'tools\convert\convert'  Click the Other tab. Expand the Text Files node in the treeview. Select the first file (convert) and press the Modify button.

Observed: The file displays, but syntax highlighting is not used.

Workaround
  Type the following in the Command window: MODIFY COMMAND HOME+'foxpro.h' </li> Right-click in the Editor window and select Properties in the context menu, or from the Properties menu, select Edit.</li> In the Edit Properties dialog box, clear the Word wrap check box, select the "Syntax Coloring", "Save Preferences", and "Apply to .h files" check boxes, and then click OK to close the dialog box.</li> Close the edit window.</li> Remove any .H files from your project (PLEASE be careful to select Remove, and not Delete, in the confirmation dialog box), and add them back in as Programs. Do this by highlighting the Programs node under the Programs tab, selecting the Add button, listing All Files, and selecting your .H files.</li></ol>

Now when the .H files are modified, Syntax coloring will be used.

Additional query words: kbVFp500 kbVFp500a kbVFp600 kbVFp600bug kbVFp500abug kbProjManager

Keywords: kbprb KB192575

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.