Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embarrassing question...
Message
 
 
To
10/01/1999 19:31:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174494
Message ID:
00174550
Views:
27
Erik,

If you have a classlib selected on the left the CB will export the whole classlib to a file viewcode.prg (or viewcode.htm if you rightclick) in the home() folder. If you rightclick export and then rightclick the code window you can Print from the context menu since there isn't a menu on the view window. You could also bring the .htm file up in a "real" version of the browser. The actual colors used seem to be hardcoded into the source in browser.prg, it wouldn't be all that hard to have them look in the registry.

But the CB doesn't do a full parse of the source so all the different items we can syntax color aren't really supported.

>Not completely relevant here, but possibly helpful...
>
>In VFP 6.0, if you Right-click on the button in the class browser that allows you to view class code, the resulting window that appears is actually an IE window masquerading as a code window. This means you can right click on it and select view source, and you will get an html listing of your source code- formatting, syntax coloring and all. You can paste this code into an html document and print it from your browser. Unfortunately, the view doesn't respect your syntax coloring settings, but rather comes up with its own. This is a lot of step for routine ly printing out code listings, but helpful if you need to know how to do it....
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform