Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I need to use symbols with suffixes in order to make my code readable in relation to the Eurocodes. To do this I use Symbolize from the Notation` package, but have noticed that the syntax colouring does not work on symbols created in this way. This makes checking the code more difficult. Is there a way of getting the syntax colouring to work or am I doing something wrong?

Here is a toy example which seems to work if you copy and paste and then change it to Standard Form (Control-Shift-N). Note the W is shown black whereas the subscript is shown in blue. All the other symbols are shown blue even after they are defined.

SubscriptBox["\[Gamma]", "M0"]]];
RowBox[{"c", ".", "y", ".", "Rd"}]]]]; Symbolize[
RowBox[{"el", ".", "y"}]]]];

Subscript[M, c.y.Rd] = 50;
Subscript[W, el.y] = 0.05;
Subscript[\[Gamma], M0] = 1.2;

\[Sigma] = Subscript[M, c.y.Rd]/(Subscript[W, 
 el.y]/Subscript[\[Gamma], M0])


Here is an image of what I mean

share|improve this question
Can you please give a small toy example which someone can copy, paste and try? – halirutan Dec 14 '12 at 9:23
Here is a toy example. – Malcolm Dec 17 '12 at 9:10
Where? I cannot see that you edited your question or something like that. – halirutan Dec 17 '12 at 9:26
My apologies halirutan I wanted to paste in code but it closed the comment when I hit the return key. I have now done so in the question – Malcolm Dec 17 '12 at 9:28
To update your question is the right way! You code can not be evaluated. Please look at this answer to read how to post code here. – halirutan Dec 17 '12 at 9:32

Your Answer


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

Browse other questions tagged or ask your own question.