×

Writing Code in Solutions

Hi all. What's the best way to include code in a solution? I've never done this before today. Any help is appreciated!

Note by Ryan Tamburrino
1 year, 11 months ago

Sort by:

 1 insert code here 
· 1 year, 11 months ago

Yeah, like that! How do you make that box?

 1 2 This is an example Edited by Calvin 
· 1 year, 11 months ago

Add ` to the start and end of your code sequence. I've edited your comment so you can click "edit" to see the change.

For more information, see this. Staff · 1 year, 11 months ago

Thanks a bunch! · 1 year, 11 months ago

If you mean LaTeX, then just begin your code with $$and end with$$

Example, if you wanted to write the square root of 2, you would do $$\sqrt{2} and then end it with$$.

$$\sqrt{2}$$.

When you post, at the bottom, there is a formatting guide, it will tell you all you need to know. · 1 year, 11 months ago