Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have created a custom object and created a generic view in the ps1.xml file and it formats great, I would like to add color to the output. How would I go about adding color to the output in the ps1.xml file. For example my output is a simple table in which one column has a status output for cloud servers. I would like the output to display white for active, red for stopped, yellow for rebooting etc. I am guessing it would take a but I have not yet found any examples or articles detailing the use of it for color in the ps1.xml file.

Any help would be appreciated.

share|improve this question
add comment (requires an account with 50 reputation)

1 Answer

up vote 0 down vote accepted

No colors in ps1xml files in v3. You can:

I hope v4 will finally get it. Conditionally colored output would really help to spot issues, so I guess it make perfect sense to have. Not there yet though...

share|improve this answer
Thanks for the quick response, yeah I hope we get a format color node for ps1.xml soon. – Mark Key Feb 13 at 14:58
add comment (requires an account with 50 reputation)

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.