Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
You can go back and fix your original post by highlighting the code and clicking the </> in the menu bar.
You should include a link to any libraries that do not come with the IDE so that members that may want to help do not have to search for the libraries and hope that they find the right ones.