How do you show latex code in your post?
A way to show the backslash, square-bracket.
Use the accent that is on the same key as ~. `\(\LaTeX\)`
~\[\LaTeX\]'\[\LaTeX\]\`\[\LaTeX\]???
One on each side of the \(\LaTeX\) code block. ``` `\(\LaTeX\)` ```
`\[\LaTeX\]` HAZAAAH!
The use of ``` on a single line above and below larger code blocks also does the code highlighting, and code blocks override \(\LaTeX\).
`\[can =it+do\]\[multiple\times lines?\]` yup
``` \[can =it+do\] \[multiple\times lines?\] ``` I see, thanks a bunch!
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.
2 3 4 5 6
Nope. It would be: 1 2 3 4 5 Hehe. Range starts at 0 and goes 1 less than what is put in.
I've forgotten the rules of more programming languages then I can remember.
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.
Join our real-time social learning platform and learn together with your friends!