- <#
- .SYNOPSIS
- This script sets an ISE Theme to similar to the old VIM editor.
- .DESCRIPTION
- This script sets the key values in $PsIse.Options to values consistent
- with the VIM editor, beloved by many, particularly on the Powershell
- product team. This script is based on Davis Mohundro's blog post
- (http://bit.ly/iib5IM), updated for RTM of PowerShell V2.0. See also
- .NOTES
- File Name : Set-ISEThemeVIM.ps1
- Author : Thomas Lee - tfl@psp.co.uk
- Requires : PowerShell Version 2.0 (ISE only)
- .LINK
- This script posted to:
- http://pshscriptsbog.blogspot.com
- http://bit.ly/iaA2iX
- .EXAMPLE
- This script when run resets colours on key panes, including
- colourising tokens in the script pane. Try it and see it...
- #>
- # PowerShell ISE version of the VIM blackboard theme at
- # http://www.vim.org/scripts/script.php?script_id=2280
- # Set font name and size
- $psISE.Options.FontName = 'Courier New'
- $psISE.Options.FontSize = 16
- # Set colours for output pane
- $psISE.Options.OutputPaneBackgroundColor = '#FF000000'
- $psISE.Options.OutputPaneTextBackgroundColor = '#FF000000'
- $psISE.Options.OutputPaneForegroundColor = '#FFFFFFFF'
- # Set colours for command pane
- $psISE.Options.CommandPaneBackgroundColor = '#FF000000'
- # Set colours for script pane
- $psise.options.ScriptPaneBackgroundColor ='#FF000000'
- # Set colours for tokens in Script Pane
- $psISE.Options.TokenColors['Command'] = '#FFFFFF60'
- $psISE.Options.TokenColors['Unknown'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['Member'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['Position'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['GroupEnd'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['GroupStart'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['LineContinuation'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['NewLine'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['StatementSeparator'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['Comment'] = '#FFAEAEAE'
- $psISE.Options.TokenColors['String'] = '#FF00D42D'
- $psISE.Options.TokenColors['Keyword'] = '#FFFFDE00'
- $psISE.Options.TokenColors['Attribute'] = '#FF84A7C1'
- $psISE.Options.TokenColors['Type'] = '#FF84A7C1'
- $psISE.Options.TokenColors['Variable'] = '#FF00D42D'
- $psISE.Options.TokenColors['CommandParameter'] = '#FFFFDE00'
- $psISE.Options.TokenColors['CommandArgument'] = '#FFFFFFFF'
- $psISE.Options.TokenColors['Number'] = '#FF98FE1E'
This blog contains PowerShell scripts, more PowerShell scripts and still more PowerShell scripts. Occasionally you may see some organisational posts.
Thursday, 23 December 2010
Set-IseThemeVim.ps1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment