Created
February 22, 2023 20:09
-
-
Save daisyUniverse/ea1a18aab6f1ba86b5a0322af0cd4b5e to your computer and use it in GitHub Desktop.
Multi-Colored Powershell Prints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pretty Printer | |
# Robin Univere [R] | |
# 02 . 22 . 23 | |
function pretty{param($msg,$col)$i=0;foreach($pt in $msg){Write-Host "$pt" -NoNewline -ForegroundColor $col[$i]; $i++}Write-Host} | |
# Example Usage | |
$front = "Robin" | |
pretty " >>> ", "Creating registry entry signifying ", $front, " as current fronter" "Magenta", "Green", "White", "Green" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment