Is there a way to run a prg through BEAUTIFY without bringing up Tools->Beautify? e.g. BEAUTIFY anyprogram.prg Wes Wilson, President ERW Custom Programming, Inc. Crescent Lake Plaza 5459 Elizabeth Lake Rd. Waterford, MI 48327 (248) 683-4182 LinkedIn Profile "Companies pay too much attention to the cost of doing something. They should worry more about the cost of not doing it" Philip Kotler www.erw.com weswilson@erw.com
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Sure. The location of the code is stored in _beautify. So something like DO (_beautify) WITH <file to beautify> should do the trick. Although I wouldn't take my word for it. I'd go look at the VFP source to verify parameters. :-)
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Wes Wilson Sent: Tuesday, November 15, 2016 1:23 PM To: profoxtech@leafe.com Subject: Beautify
Is there a way to run a prg through BEAUTIFY without bringing up Tools->Beautify? e.g. BEAUTIFY anyprogram.prg Wes Wilson, President ERW Custom Programming, Inc. Crescent Lake Plaza 5459 Elizabeth Lake Rd. Waterford, MI 48327 (248) 683-4182 LinkedIn Profile "Companies pay too much attention to the cost of doing something. They should worry more about the cost of not doing it" Philip Kotler www.erw.com weswilson@erw.com
Could we beautify source codes into HTML files? :)
On Wed, Nov 16, 2016 at 2:22 AM, Wes Wilson erwweswilson@yahoo.com wrote:
Is there a way to run a prg through BEAUTIFY without bringing up Tools->Beautify? e.g. BEAUTIFY anyprogram.prg Wes Wilson, President ERW Custom Programming, Inc. Crescent Lake Plaza
On Wed, Nov 16, 2016 at 8:00 AM, Man-wai Chang changmw@gmail.com wrote:
Could we beautify source codes into HTML files? :)
Actually, that's built-in, too. Of course, the Beautified HTML won't run ;) See:
https://msdn.microsoft.com/en-us/library/ms917378.aspx
and search for "HTML"
The articles states:
In the Class Browser, you can export code to HTML. With a class highlighted in the left pane, right-click the View Code button. This invokes your Web browser and opens the browser window over the right pane of the Class Browser.
In fact, in VFP9, you cannot right-click the class but there is a "View Code" button on the toolbar. However this does not display the code in a Web browser but in a modeless window. Clicking on this button whilst another class is highlighted shows the code in the same modeless window rather than in a separate window.
Paul Newton
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ted Roche Sent: 16 November 2016 14:27 To: profoxtech@leafe.com Subject: Re: Beautify
On Wed, Nov 16, 2016 at 8:00 AM, Man-wai Chang changmw@gmail.com wrote:
Could we beautify source codes into HTML files? :)
Actually, that's built-in, too. Of course, the Beautified HTML won't run ;) See:
https://msdn.microsoft.com/en-us/library/ms917378.aspx
and search for "HTML"
[excessive quoting removed by server]
On Thu, Nov 17, 2016 at 3:37 AM, Paul Newton Paul.Newton@pegasus.co.uk wrote:
The articles states:
In fact, in VFP9, you cannot right-click the class but there is a "View Code" button on the toolbar.
No, the class is *highlighted* using the usual left-mouse click: a CLASS needs to be highlighted, not just a VCX.
Then, you right-click on the View Code button, on the toolbar.
However this does not display the code in a Web browser but in a modeless window. Clicking on this button whilst another class is highlighted shows the code in the same modeless window rather than in a separate window. <
If you right-click in the modeless window, you will notice the options are not VFP options; they are web browser options.
As far as I can tell, this is simply a parlor trick; I can't really come up with a use for this "feature." I recalled Ken Levy demonstrating it for us years ago. I'm not sure he had a use for it, either, other than "Isn't that cool?"
It's true that the article was written for VFP, and the Class Browser code has been updated since then. If you'd like to see what it is actually doing, check out the XSource.
Well, I never knew that. Could be useful for diffing different versions of classes etc.