See the section on Syntax highlighting:
FAQ - Processing Community Forum < I learned this recently and I am an experienced forum member!
That is a start.
The code you posted still has errors.
We do not have the original source to work and can only work with what was pasted which may have additional errors lost in translation.
In a ideal world code should be formatted properly by the original poster, reviewed and tested before posting.
All users, and especially new users, should be required to read all the guidelines before posting.
These days I follow this approach to unformatted code:
- Flag it and the moderators can address at their discretion.
- I may share a courtesy link to educate:
FAQ - Processing Community Forum < See Format your Code
The above reflects my opinions on this matter.
We are all trying to help!
:)