Skip to main content
All CollectionsCoding Sketches
Mastering Sketch Comments
Mastering Sketch Comments

You can use comments to provide your thoughts and feedback.

Sinan Ascioglu avatar
Written by Sinan Ascioglu
Updated over a year ago

The commenting feature allows users to leave comments on sketches. This can be used for a variety of purposes, including giving feedback, asking questions, or simply expressing appreciation. In this article, we will cover everything you need to know about adding comments on OpenProcessing.


Adding a Comment

To add a comment to a sketch, simply click the comment icon located at the top right of the sketch window. This will open the comments section, where you can type your comment. Once you have written your comment, hit the enter key or click on "Post" to post it.


Replying to a Comment

If you want to reply to an existing comment, click the "reply" button on that comment. This will open a text box where you can type your reply. Once you have written your reply, hit the enter key to post it.


Commenting on a Specific Section of the Code

OpenProcessing also allows you to comment on a specific section of the code, which is particularly helpful to highlight any bugs! To do this, select the code section in our coding editor and click on the comment icon by its line number. When you post your comment, it will be associated with the selected lines, and the related section will be highlighted in the code editor when comment panel is open.


Posting Quick Replies Using Emojis πŸ™Œ

If you want to post a quick reply using an emoji, simply hover over any comment and choose an emoji for your liking. This is a fun and easy way to express your reaction to a sketch or comment quickly.


Adding Code Snippets in Comments

You can also add code snippets in your comments to better explain your point. You can use standard markdown format to add inline or block code snippets:

  • You can enter short inline code examples by wrapping your code with a single backtick. For example: "You can also use `ellipse` for different shapes."

  • You can add larger code snippets in code blocks by wrapping your code with three backticks. Here is an example:
    ```
    fill(0);
    ellipse(0,0,100,150);
    ```


Controlling Comment Privacy

When posting a new comment, you can control the privacy of the comment. You can choose to make the comment visible to the public, visible only to the class (if you are part of a class), or only visible to the owner of the sketch. This allows you to control who can see and interact with your comment.

Comments are public by default for public sketches. But if the sketch is a private sketch (for example, share only with class), the comment will also be set to the same privacy setting by default.

Restricted student accounts can not post public comments. They can set their comment visibility to either "All Class" or "Only Owner".

Commenting on OpenProcessing is an essential feature that allows users to communicate, collaborate, and share their ideas! By following the simple steps outlined in this article, you can easily add comments, reply to comments, and add code snippets to your comments. Happy commenting!

Did this answer your question?