header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Code Formatting for Forums
Last Post 20 Aug 2011 01:55 AM by hno3. 4 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
Chad MillerUser is Offline
Basic Member
Basic Member
Posts:180
Avatar

--
10 May 2011 11:33 AM
    The forums do not support posting formatted PowerShell code (or any code), instead you have to copy the code as HTML (using something like PowerShellISE PowerPack add-on) and the then reply after which the reply post gets messed up and you have to re-edit manually inserting line breaks.
    PoshoholicUser is Offline
    PowerShell MVP, Community Director
    Basic Member
    Basic Member
    Posts:111
    Avatar

    --
    13 May 2011 06:08 AM
    • Accepted Answer
    You shouldn't have to do that. I'm going to test it in this reply by inserting some code by clicking on the Code button above this control, then inserting the code between the tags.

    
    if ($onPowerShellCommunity.org) {
        Write-Host 'Look at me, I''m a PowerShell script!'
    }
    


    Let's see if that works. :)
    Kirk Munro [MVP]
    Poshoholic

    My blog: http://poshoholic.com
    Follow me on Twitter: http://twitter.com/poshoholic
    PoshoholicUser is Offline
    PowerShell MVP, Community Director
    Basic Member
    Basic Member
    Posts:111
    Avatar

    --
    13 May 2011 06:09 AM
    Looks like that worked.  Is this the functionality you were looking for?
    Kirk Munro [MVP]
    Poshoholic

    My blog: http://poshoholic.com
    Follow me on Twitter: http://twitter.com/poshoholic
    hno3User is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    20 Aug 2011 01:54 AM
    test 
    hno3User is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    20 Aug 2011 01:55 AM
    
    
    test line 1
    test line 2
    test line 3
    '+'
    
    
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer