A common problem with posts involving code segments is that users either simply paste the entire code blocks, or they do use the “Preformatted text” button, but the code still wouldn’t be represented properly, because the button defaults to an indentation by 4 spaces. Both approaches don’t generate desirable results. Hence we frequently have to explain to users how to format code properly (triple-backticks), or fix up the formatting ourselves (I do this almost every day, and it’s quite annoying!!)
I thought that, at least for those users who discovered the formatting button in the toolbar, we should default to triple-backticks instead of 4 spaces. We can change the respective setting at http://discourse.psychopy.org/admin/site_settings/category/posting
code formatting style is currently set to 4-spaces-indent. We should probably change it to code-fences.
Clicking on the respective toolbar button would then generate a block embedded in triple-backticks when the cursor is placed at the beginning of a new line, and single-backticks otherwise. Do you think this would be a good (better) default? Thanks!!