See Wiki - how to post code on this forum. You will then be able to preserve indentation and apply syntax highlighting.