I am wondering how would you print the expression with color using function Print. For example, I tried the code below but the output of print function is just black. Is there a method to choose the color for both my result and x+y+z in the code below?
result = x + y + z;
Print[" my result = ", result]
Style. Anything you wrap inStylewill display with thatStyle. You can do much more interesting things than justPrint. – b3m2a1 Mar 22 '18 at 08:37resultabove can be any expression not justx+y+z. So how do I use style? – emnha Mar 22 '18 at 08:46Styleand then it's obvious... But if you need an explicit answer: e.g.Style[result, Red]. Get rid of thePrint. You don't need it. UseRowinstead. – b3m2a1 Mar 22 '18 at 08:48myresultand the expression ofresult. How can I use both inStyle? – emnha Mar 22 '18 at 08:51Row. And read the documentation. Please. It lays it out. – b3m2a1 Mar 22 '18 at 08:52