Under the area where you type messages, select Format. Select Code snippet from the task bar. Enter your title and code for the snippet, and then select Insert.