The Delphi Preview Handler, is a preview handler for windows vista and 7 which allow you read your object pascal, C++ and Assembly code with Syntax highlighting without open in an editor, this preview handler can render these file extensions .pp, .lpr, .lfm, .lpk, .inc, .pas, .dpr,.dfm, .dpk,.dproj, .bdsproj,.c, .cpp,. cc,.h, .hpp,.hh, .cxx, .hxx, . cu, .asm.
Features
- Supports Windows Vista y Windows 7 32 and 64 bits.
- +50 themes included to see your code with style
- Themes compatibles with the Delphi IDE Theme Editor
- Support these file extensions .pp, .lpr, .lfm, .lpk, .inc, .pas, .dpr,.dfm, .dpk,.dproj, .bdsproj,.c, .cpp,. cc,.h, .hpp,.hh, .cxx, .hxx, . cu, .asm.
Technical Stuff
- Written in Delphi XE
- Components used SynEdit
Screenshots
Video
Suggestions and Bugs report
http://code.google.com/p/delphi-preview-handler/issues/list
Source Code
http://code.google.com/p/delphi-preview-handler/source/browse/
Downloads
Manual Installation
Follow these steps to register the preview handler
1. Choose Start > All Programs > Accessories.
2. Right-click on Command Prompt, Select Run As Administrator, and Authenticate.
3. Go to Delphi Preview Handler folder in Command Prompt.
4. Run “Register.bat”
5. Enjoy
Important Note about editing the Settings.ini file
You can change the theme used in the Preview Handler editing the Settings.ini file, but before to do this you must unregister the preview handler and close all the explorer windows. to avoid problems. please follow these steps :
1. unregister the dll
2.close all the windows explorer
3.edit the Settings.ini file
4.save the changes
5.register the dll
6.enjoy
Important Note about installing a new version
In order to avoid problems you must follow these steps when you install or register a new version of the preview handler.
1. Close all the windows explorer windows which have the preview handler active or the preview handler was used (remember the dll remains in memory until the windows explorer was closed)
2. Unregister the previous version executing the uninstaller located in C:\Program Files (x86)\TheRoadToDelphi\DelphiPreviewHandler or C:\Program Files\TheRoadToDelphi\DelphiPreviewHandler
3. If you install the preview handler manually you must unregister using the UnRegister.bat running as admin.
4.Now proceed with the installation of the new version.





Pingback: Introducing the Delphi Preview Handler « The Road to Delphi – a Blog about programming
Pingback: Delphi Preview Handler – source code published in google code « The Road to Delphi – a Blog about programming
June 26, 2011 at 9:21 pm
Many thanks for this. Using Win7 64-bit if I click on a file in the details pane then click on the preview pane I cannot use the mouse-wheel to scroll – must use the scroll-bars. Is mouse-wheel scrolling to become available?
Cheers,
Kim.
June 26, 2011 at 10:37 pm
Kim, you can suggest this feature in the issue list of the project http://code.google.com/p/delphi-preview-handler/issues/list
June 26, 2011 at 11:47 pm
Cool stuff :) many thanks.
June 28, 2011 at 4:53 pm
Hi,
First of all, I’d like to thank you for this tool. I think it will be very usefull.
When I tried to register the DLL I received the message “there was a fail when calling DllRegisterServer”
Do you know why?
I am using Windows Vista.
Thank you again.
June 28, 2011 at 5:05 pm
Hi Thiago, a few questions, are you using the installer or the manual resgitration? if you are doing manually , do you follow the instructions to register the preview hanlder (running a cmd.exe windows as admin and then from that window execute the register.bat)?
June 29, 2011 at 10:20 am
Rodrigo, thank you for your answer.
I installed using the installer. Then, I tried to register it using cmd.exe (as admin) and running register.bat).
June 29, 2011 at 11:08 am
Thiago, try checking the event viewer of windows to obtain more details about why the register of the dll fails.
June 29, 2011 at 12:34 pm
Rodrigo,
I don’t what to do. I checked the event viewer but I found nothing.
Thank you anyway.
November 4, 2011 at 12:41 pm
For non delphi projects I’m using this Source Preview Handler:
http://www.smartftp.com/client/addons/sourcepreview/
November 4, 2011 at 8:38 pm
This is a very nice preview handler. Stay tuned in the next days I will upload a new version of the delphi preview handler with many fixes and improvements.
February 28, 2012 at 3:24 am
I like this blog, Rodrigo u’re very genius man ;)
April 2, 2012 at 1:32 pm
Can this be done in Delphi 2010? I don’t have XE yet (not an easy task upgrading a companies flagship products Delphi version these days) and tried using this source in 2010 however, naturally it chokes on syntax in ComObj.pas which I’d expect. I just don’t want to pursue hacking it up if it can’t be done to begin with.
April 2, 2012 at 2:10 pm
Yes can be done with delphi 2010, only you must add some additional types and interfacce declarations.
Pingback: Johni Douglas Marangon » Dicas – Delphi Preview Handler