Suppose that I have an code which goes like this:
yp = 2;
y_p= 2;
a = x + yp + y_p;
Please put y with subscript p, NOT Subscript[y, p].
Usually, once the variable is defined it will be of blue color and once it executed (by pressing Shift+ Enter) it will change color to black. But, you can see that x and yp change to black, but Subscript[y, p] still remain in the same color. Why is this so? Is it default in Mathematica that if you use the subscripts as variable, the color will not change after execution? I am attaching the Mathematica file for your references.
Thanks in advance...
Attachments: