How to link your code in order to ask questions

Sorry I know this is probably a super newb question but Im new to coding and I cannot figure out how to share my code on the freecodecamp forum without it just creating a website where I copy past the code into the text box. Please Help!!

1 Like

To share code on the forum you simply copy/paste the code into your post and enclose it within two sets of triple backticks. You can type the backticks manually or use the Preformatted Text tool (</> icon or CTRL+e) to create them for you.
This will ensure that your code displays correctly on the forum.

1 Like

Hello @taktilemechanic1 !

If you look at the top of the text box, where you type your questions, as @igorgetmeabrain stated, there is a </> which is the preformatted place to paste your copied code into and submit with your questions for the community.

Another way, he mentioned is the ``` three backticks before and after each set of codes.
The backticks are usually found beside the number one, depending on the keyboard and language. The should not be mistaken for the single quotation markβ€™β€˜β€™.

Happy coding!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.