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

Get help here when I'm coding in Sublime?

Hi Treehouse,

I code using Sublime Text instead of Workspaces here on Treehouse. As I am a beginner of coding I constantly need help to improve my skills, it's just that I have gotten used to Sublime and I also live in a place where Workspaces isn't possible to use.

When I try copying my codes from Sublime to Workspaces it always creates a mess (I don't know why really?) so I'm wondering if there is a way here at teamtreehouse.com to get community help with my projects whilst posting the code to these projects from Sublime?

Thank you very much in advance!

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Why do you want to copy code from sublime to a workspace and what do you mean "messed up"?

Are you wondering how to have pretty code blocks in community questions, comments and answers (like this)? If so, the Markdown Cheatsheet has the answers.

For code highlighting you start with a block of three backtics (usually the key above the tab) ` followed by the language like html, css, php... and open up a black line and close it with 3 more back tics.

using single quotes instead of tic for show (the tics don't show up - using single quotes instead) using 4 separate lines

'''javascript

// copy or type your code here:

var xyz = "string";

'''

Here it is with actual backtics:

// copy or type your code here:
var xyz = "string";

Ok, Dave, thank you so much! That's a lot of the answers that I was looking for!

Can I ask you another general question: since I'm a beginner and therefore sitting alone with my coding I'm wondering if posting long posts with plenty of code for "general reviewing" so to say is ok here?

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Well Linus, I would say that long posts with plenty of code for general reviewing is probably ok, but not really a "best practice". Just think about what you want reviewed and the audience that you are asking to do that review. I would recommend following StackOverflow's - How do I ask a good question guidelines. Also, check with the Treehouse peeps, maybe they have something for pairing up individuals for code reviews.

The idea is to make it as easy as possible for someone else to help. Including just the needed code for the question - only the snippets specific to your question.

Also, don't worry about your code so much, first get it working and then refactor to make it more readable and editable. Everyone's code could always be made better (I look back at previous stuff and say why did I do it that way). Just keep making things work and write code a lot and you will develop your style. Unfortunately, the process can't be rushed.

Hope that makes sense. :smirk:

Yes, that makes a lot of sense. Thank you so much!

I have posted a longer question about my first website build right now here in the community. We will see how it goes :)