Why does code editing page show some css in different colors?

Solved
jeffamm
New Member
7 0 0

Must be a simple answer but I can't find it anywhere on forums, where is the explanation for color-coded lines in shopify code as seen here  For example, why are the lines shown in red?

css color.jpg

0 Likes
paramSoft
Shopify Partner
1465 238 654

This is an accepted solution.

Hello, you have forgot to terminate the ._btn  and .mdm_comment_form with '}'


Please please double } after the termination of &:hover

Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
0 Likes

This is an accepted solution.

Hello @jeffamm 

This is a good question. As you can see, the previous HTML element was light green and then it turns to red. 

When it turns it to red, it means that something before him went wrong.

In your case what went wrong is that you forgot to add the symbol } at the line 195

diego_ezfy_0-1600326550630.png

I hope it helps.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Using a free theme? Improve it with copy/paste code snippets clicking here.
◦ Looking to hire an experienced developer? Same day response: ezfycode@gmail.com.
0 Likes
jeffamm
New Member
7 0 0

Thanks for pointing out the errors, I assumed the colors meant some sort of error.  Is there list somewhere of what the different colors mean?

0 Likes
jeffamm
New Member
7 0 0

Thanks Diego, so other than errors, why is some code black, some green, and other is red but doesn't appear to be an error?  Is there documentation on this somewhere?

0 Likes