It's called "BBCode", short for bulletin board code. You can also search how to code things properly in SMF (simple machine forums). The simple machines site is coded pretty derpily though, so you might have to look elsewhere on the internet if you need help with BBCode.