Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAngi Lewis
2,140 PointsIn 2nd line of code, 'write' shows in red. everything displays as expected, but workspace text for write shows red, why?
Accessing through different browsers produces same result, all text is green or black but for the word: write
any input much appreciated!
Kindest Regards, Angi
2 Answers
Steven Parker
231,275 PointsWhat you are seeing is called "syntax highlighting".
The editor attempts to color things to help them stand out based on what they are. In this case, it's using red to indicate object properties and methods. So write appears in red because it is a method of document.
Dejan Došenović
8,679 PointsHello.
There is nothing wrong with your code. The text of the word 'write' is red because the font color of the workspace is so set. In text editor of your choice there is a difrent theme set, that's whay it is green.
If the syntax is underlined with a red line then there is something wrong.
Savannah Lynn
13,662 PointsSavannah Lynn
13,662 PointsHi! Can you post your code please?