Formatting code in forum posts
If you post Python code, the tabs are essential for readability, both by forum users and PsychoPy itself. To maintain the tabs, you need to use preformatted text which you can select from the cog menu.
Selecting it on an empty line will give you
On a non-empty line you will get
You can also manually surround you code with one or three backticks.
When posting code, please clarify which tab is comes from: Before experiment, Begin experiment, Begin Routine, Each frame, End Routine or End experiment.
Please do not post code from Python or JavaScript files generated by Builder unless you have a question directly related to the compilation process.
Please do not post JavaScript code unless you are pasting the lines related to an error message in developer tools, using a JavaScript only code component or have modified the autogenerated code by using a Both code component (in which case you should also show your Python code and highlight the changes to the auto generated code you made).
If you are using Coder, please try to only post the code relevant to your issue.