Mega Code Archive

 
Categories / Delphi / Examples
 

Easy viewing of pas files [windows tip]

Ever wish you could view a .PAS or .~pa file quickly without loadng it into Delphi? Here an easy way to do it. Make sure you have QuickView installed. ( You can test it by QuickViewing a .TXT file.) Open the Regisrty Editor and search for QuickView. Expand the QuickView icon. You will see a list of key folders for various extensions. Right click on the QuickView icon. Select NEW and KEY. A New key dialog will appear with the default text 'New Key #1' Edit the default text to read '.PAS' (without the quotes). Locate and expand the '.TXT' icon under the QuickView Icon. It will open a key with the CSLID for the Text QuickViewer. Right click and copy that key. Right click on your new .PAS key and click NEW and KEY. Press V to paste the key you just copied into the new key. The pasted key will contain the Registry Path of the copied key as well as the CSLID. Delete everything prior to the CSLID which begins with '(F0F0...'. Repeat the process for the '.~pa' extension. You can now view your pascal files and backups by right clicking on the file in a folder window and selecting QuickView. It even works from the Delphi Open dialog.