## doc.brown How do you show latex code in your post? 4 months ago 4 months ago

1. doc.brown

A way to show the backslash, square-bracket.

2. e.mccormick

Use the accent that is on the same key as ~. $$\LaTeX$$

3. doc.brown

~$\LaTeX$'$\LaTeX$\$\LaTeX$???

4. e.mccormick

One on each side of the $$\LaTeX$$ code block.  $$\LaTeX$$ 

5. doc.brown

$\LaTeX$ HAZAAAH!

6. e.mccormick

The use of  on a single line above and below larger code blocks also does the code highlighting, and code blocks override $$\LaTeX$$.

7. doc.brown

$can =it+do$$multiple\times lines?$ yup

8. doc.brown

 $can =it+do$ $multiple\times lines?$  I see, thanks a bunch!

9. e.mccormick

The code highlighting system was built for programming:  def function(int i): for x in range(i): print x+1 function(5)  But it works well for $$\LaTeX$$ too. Just don't be surprised if you see the code highlight colors at times.

10. doc.brown

2 3 4 5 6

11. e.mccormick

Nope. It would be: 1 2 3 4 5 Hehe. Range starts at 0 and goes 1 less than what is put in.

12. doc.brown

I've forgotten the rules of more programming languages then I can remember.

13. e.mccormick

I get that. I started with ROM based BASIC, learned some ASM, C, and Pascal (Not much), and don't use them at all. Know an OK amount of C++, Python, and Java. But try and do anything with Pascal and about all I remember is that statements end in ; and the program must have a defined begin and end.