header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

How do you post colorized scripts?
Last Post 29 Feb 2008 10:00 PM by DonJ. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
kscrissUser is Offline
Basic Member
Basic Member
Posts:119

--
21 Feb 2008 07:03 PM  

I use the output of the Powershell script HightLigh-Syntax.ps1 to color my scripts.

Usage: ./HightLight-Syntax.ps1 ./Myscript2Color.ps1 > out.htm

I then cut-and-paste the contents of out.htm into an "Add New Topic".  Don't try this method in a "Quick Reply".  Howerver if you are replying to a color post  you can use the "QUOTE" feature to paste additional color stuff in your response.  I think if you try to paste colorized junk using the "QUICK REPLY" if will look terrible.  Try testing in the test forum.

I think the script "HightLight-Syntax.ps1" is available at the Sapiens script valut.

My blog: http://blogs.powershellcentral.com/kscriss/
DonJUser is Offline
PowerShell MVP
Basic Member
Basic Member
Posts:134
Avatar

--
29 Feb 2008 10:00 PM  
FYI: Quick Reply doesn't provide the full range of formatting options - it's intended for "quick," one-off replies that don't need formatting.
- Don Jones
www.ConcentratedTech.com
Subscribe (RSS) or visit for weekly PowerShell tips and lessons
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer