自定义Windows 7预览窗格语法突出显示 [英] Custom Windows 7 Preview Pane syntax highlighting

查看:101
本文介绍了自定义Windows 7预览窗格语法突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发现超级用户后,目前没有添加语法的方法突出显示到Windows 7预览窗格,我发现如果其他人还没有做,那么我将自己进行.

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.

是否存在可用于Windows 7的API或SDK,该API或SDK可以将资源管理器中的预览窗格暴露给自定义?如果是这样,那是什么?您如何看待最优雅的方法?我想从Visual Studio中读取语法突出显示选项,以获取用户喜欢的颜色和代码主题设置.

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.

推荐答案

必须检查预览处理程序,可以从

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.

您可以检查以下链接:

  • IPreviewHandler Interface
  • View Data Your Way With Our Managed Preview Handler Framework
  • Using Vista Preview Handlers in WPF application

这篇关于自定义Windows 7预览窗格语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆