Jan 132011
 

Ever wanted to make your output a little cleaner? Try using the built in way of inserting a tab or a new line into your string in PowerShell. It’s an easy way to make your output look much better. All you need to do is add 'n for a new line or 't for a tab.

"This is a list of stuff -<code>nThing 1:</code>tSome Stuff<code>nThing 10:</code>tOther Stuff" &gt; This is a list of stuff - &gt; Thing 1: Some Stuff &gt; Thing 10: Other Stuff

That’s it. By the way, the backtick that you are seeing is the character to the left one the “1″ key on your keyboard.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">