Forum Discussion
Experimentalist
Sep 02, 2022Copper Contributor
Is there a PowerShell script previewer for file explorer in windows with syntax highlighting?
The subject says it all really, I do have a previewer but it is plain text and I would like to preview with syntax highlighting.
Sep 17, 2022
Just tested it and yes, it does work 🙂 Have PowerToys installed, but never used the File Explorer preview. Just enable it and use ALT-P in File Explorer and select a PowerShell file... Nicely formatted too if you enabled the File Explorer Add-ons/Source Code (Monaco/Try for format the source preview option
raindropsdev
Sep 17, 2022Iron Contributor
Happy to hear it works! Though considering the security risks of preview in explorer (the last one being Follina) I would personally never enable it or use it.
- Sep 17, 2022
raindropsdev Personally I don't use previews in Explorer because it slows things done, but yes... Security risk too. But that's up to the Experimentalist who started this topic 😉