Idera nSoftware Compellent

Write-Host


posted by Richard Giles
02-17-2009

Downloads: 122
File size: 922 B
Views: 764

Embed
Write-Host
  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>write text to console</Title> 
  6.             <Shortcut>wt</Shortcut> 
  7.             <Description>writes Text to console</Description> 
  8.             <Author /
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip /
  18.                     <Default>Red</Default> 
  19.                 </Literal> 
  20.                 <Literal> 
  21.                     <ID>param2</ID> 
  22.                     <ToolTip /
  23.                     <Default>White</Default> 
  24.                 </Literal> 
  25.                 <Literal> 
  26.                     <ID>param3</ID> 
  27.                     <ToolTip /
  28.                     <Default>Hello</Default> 
  29.                 </Literal> 
  30.             </Declarations> 
  31.             <Code Language="PowerShell" Kind="-1"><![CDATA[Write-Host -ForegroundColor "$param1$" -BackgroundColor "$param2$" "$param3$"]]></Code> 
  32.         </Snippet> 
  33.     </CodeSnippet> 
  34. </CodeSnippets> 
Filed under: ,

Inserts a text to console.

Copyright 2010 PowerShell.com. All rights reserved.