This little utility is a bit overkill but what the heck...
Many people initially have difficulty formating their Python code so it looks good in posts to the Pythonisa Forum. This script attempts to properly format your code with appropriate carrage returns and backticks so that it is ready to post to the forum.
Remember that you can edit your own posts by clicking the word edit at the top right of the post.
Edit: Fixed bug: The first letter of each line created in the TextView is capitalized which is suboptimal typing in Python code.