Search code examples
windows-7syntax-highlightingpreview-pane

Custom Windows 7 Preview Pane syntax highlighting


After discovering on superuser that there is no current way to add syntax highlighting to the Windows 7 preview pane, I figured if someone else hasn't done it yet then I'll go ahead and do it myself.

Is there an API or SDK available for Windows 7 that exposes the preview pane in explorer to customization? If so, what is it and how do you think is the most elegant way to accomplish this? I would like it to read the syntax highlighting options from Visual Studio to get the users favorite colors and code theme settings.


Solution

  • You must check the Preview Handler, you can download an example from here. The Preview Handler is used to display a file preview inside the Windows Explorer preview pane or other preview handler hosts.

    You can check these links :