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 trial

General Discussion

HOW TO CREATE A SCREENSHOT OF MY CODE THAT CAN EASILY BE POSTED ON QUESTIONS ?

HOW TO CREATE A SCREENSHOT OF MY CODE THAT CAN EASILY BE POSTED ON QUESTIONS ? The screenshot with a dark background thing. please advise! Thanks! :)

Is this workspaces or an editor that you have installed on your machine?

6 Answers

you take your code as in copy and paste it and surround it with these (3 single quotes at top and bottom):

//make sure to put a empty line here //put 3 single quotes here //Your code here //put 3 single quotes here

To let it know which language you are writing in you put the name after the first 3 single quotes:

//make sure to put a empty line here //put 3 single quotes here and then type java right after //Your code here //put 3 single quotes here

''' //boom '''

''' //boom

'''

Also use the markdown cheatsheet link at the bottom of this page, above the post answer button, tells you how to do it

sorry i meant backwards single quotes that key thats near the 1 on your keyboard

THANKS! THAT WORKED! :D

var random = randomNumber(10);