I would like to reset an expression in a Standar Output inside a Cell.
For example,
c + Style[a+b, Red] (*I want the a+b part in red *)
Style[%, Blue] (*Now I would like all the expression in Blue or Black*)
The last output will give c+( ) in blue but the inside parenthesis a +b will remain red, because this is equivalent to
Style[c + Style[a + b, Red], Red]
But I want my last Output as
Style[c + a + b, Red]
This would be simple if there would be a way to clear all the % style.
Style[ToExpression@StripBoxes@ToBoxes@%, Blue]
? $\endgroup$Style[% /. Style -> (# &), Blue]
? $\endgroup$