CodePreviewHandler
is a source code highlighter previewer plugin for windows file explorer, it's base on Power Toys Preview Pane, and use Highlight as source code highlight. so before use this tool, your must install
- Copy
CodePreviewHandler.dll
toPower Toys
install folder, it's default isC:\Program Files\PowerToys\modules
- import
meta\install_code_preview.reg
(double click)to Registry, it will let windows file explorer known there is a code previewer. if your changed Power Toys install path, you should also edit the reg file point where your install folder. - import
meta\associate_file_to_preview.reg
(double click) to Registry, it will associate some source code file to this previewer. you may edit this reg file, remove some source file your don't want associate.
- Checkout Power Toys source
cd src\modules\previewpane
- Checkout this source
- Open PowerTosy.sln, add this project to
previewpane
project.