{"id":95,"date":"2011-01-13T16:25:00","date_gmt":"2011-01-13T23:25:00","guid":{"rendered":"http:\/\/ryan.witschger.net\/?p=95"},"modified":"2019-12-13T08:29:18","modified_gmt":"2019-12-13T15:29:18","slug":"quick-tip-insert-new-lines-and-tabs-into-powershell-strings","status":"publish","type":"post","link":"http:\/\/www.Get-Blog.com\/?p=95","title":{"rendered":"Quick Tip: Insert New Lines and Tabs into PowerShell Strings"},"content":{"rendered":"<p>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&#8217;s an easy way to make your output look much better. All you need to do is add <code class=\"codecolorer powershell default\"><span class=\"powershell\">`n<\/span><\/code> for a new line or <code class=\"codecolorer powershell default\"><span class=\"powershell\">`t<\/span><\/code> for a tab.<\/p>\n<pre class=\"theme:psconsole toolbar:2 nums:false decode-attributes:false lang:batch decode:true\">\"This is a list of stuff -`nThing 1:`tSome Stuff`nThing 10:`tOther Stuff\" \r\n\r\n&gt; This is a list of stuff - \r\n&gt; Thing 1:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Some Stuff \r\n&gt; Thing 10:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Other Stuff<\/pre>\n<p>&nbsp;<\/p>\n<p>That&#8217;s it. By the way, the backtick or backquote that you are seeing is the character to the left one the &#8220;1&#8221; key on your US formatted keyboard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s an easy way to make your output look much better.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts\/95"}],"collection":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":8,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":219,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions\/219"}],"wp:attachment":[{"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.Get-Blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}