Wednesday, December 09, 2009

PowerShell is all about enabling you. Even the PowerShell Integrated Scripting Environment (ISE) can be extended (via PowerShell of course)

Media And Microcode - Test-Spelling

“The Integrated Scripting Environment has many things: A rich debugger, a nifty object model,  and support for multiple runspaces, but it doesn’t have spell check.  Since I end up writing a lot of documentation in the ISE for my functions, I decided to write a quick Spellchecker function.

In order to write this I used some functions from IsePack and some functions from WPK.  Both IsePack and WPK can be found as part of the PowerShellPack

WPF text controls actually all have a spell check built into them, which saves almost all of the trouble of getting this to work.  Unfortunately, it means that the spell check as it is written pops up a small UI for each thing you want to check.

image

Not ground shaking but I thought it was kind of neat to see an example of the PowerShell ISE extended via PowerShell…

image

 

Related Past Post XRef:
Straight from the Windows 7 Resource Kit, PowerShellPack Released - 1.97 billion… (okay 600+, but that’s still allot) of PowerShell scripts to help you “think PowerShell”

No comments: