如何在 Outlook 中预览代码附件?
我经常发送或接收带有源代码附件(.c、.cpp、.h、.js 等)的邮件。如果我可以在 Outlook 中预览这些文件会更容易,这样我就不需要在其他应用程序中打开。
预览最好包括语法突出显示,类似于 Visual Studio。 是否有适用于 Outlook 的 Visual Studio 预览插件?
我使用 Visual Studio 2010 pro 和 MS Office 2007 Pro+
I frequently sent or receive mail with source code attachments (.c, .cpp, .h, .js, etc). It would be easier if I could preview these files in Outlook, so I do not need to open in another application.
Preferably, the preview would include syntax highlighting, similar to Visual Studio.
Is there a Visual Studio preview plugin for Outlook?
I use Visual Studio 2010 pro and MS Office 2007 Pro+
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有 (2) 个选项 - 您可以自行推出或利用现有的预览处理程序。
现有预览处理程序
Windows Preview Handler Pack:处理 aspx、cs、css、js、sql、vb 等。
自定义预览处理程序
您应该查看 预览Windows Shell 和 Office Outlook 使用的处理程序框架。 MSDN 杂志<2007 年 1 月版中有关于构建托管预览器的精彩演练和示例代码< /a>.
Channel9 有一个描述托管预览的视频演示处理程序。
预览处理程序编辑器 将显示哪些扩展程序与哪些预览器相关联。
预览处理程序注册表配置描述了查找预览处理程序时使用的注册表项配置。
一旦你有了预览器的钩子 - 这将取决于你如何处理语法突出显示等。
You have (2) options here - you can roll your own or leverage an existing preview handler.
Existing Preview Handlers
Windows Preview Handler Pack: handles aspx, cs, css, js, sql, vb, etc.
Custom Preview Handlers
You should checkout the Preview Handler Framework used by both Windows Shell and Office Outlook. There is a great walkthrough and sample code for building managed previewers in the January 2007 edition of MSDN magazine.
Channel9 has a video presentation describing the managed preview handler.
The Preview Handler Editor will show you what extensions are associated to what previewers.
Preview Handler Registry Configuration describes the registry key configuration used when looking for preview handlers.
Once you have the hook for the previewer in place - it would be up to you how you handle syntax highlighting, etc.