Delphi Preview Handler

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.

  1. June 26, 2011 at 9:21 pm | #1

    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.

  2. kien woon
    June 26, 2011 at 11:47 pm | #3

    Cool stuff :) many thanks.

  3. Thiago Melo Moreira
    June 28, 2011 at 4:53 pm | #4

    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 | #5

      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)?

      • Thiago Melo Moreira
        June 29, 2011 at 10:20 am | #6

        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 | #7

          Thiago, try checking the event viewer of windows to obtain more details about why the register of the dll fails.

  4. Thiago Melo Moreira
    June 29, 2011 at 12:34 pm | #8

    Rodrigo,
    I don’t what to do. I checked the event viewer but I found nothing.
    Thank you anyway.

  5. John Gibbs
    November 4, 2011 at 12:41 pm | #9

    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 | #10

      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.

  6. didit
    February 28, 2012 at 3:24 am | #11

    I like this blog, Rodrigo u’re very genius man ;)

  7. April 2, 2012 at 1:32 pm | #12

    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 | #13

      Yes can be done with delphi 2010, only you must add some additional types and interfacce declarations.

  1. June 26, 2011 at 12:49 am | #1
  2. June 26, 2011 at 4:38 pm | #2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 61 other followers