Or if you don't want to type the code, goto "Go Advanced" and then in the tool bar, see the 3rd row and you will see a picture which has the following text "Spo-er", click that and the spoiler tag will appear.
Usually when commenting on a thread you have to press 'go advanced' and then you have more options. Or for creating threads you should already have all the options.