Format and highlight your script code by fencing your code block within three back ticks. If you name the language your script is in, you get syntax highlighting, too:
Python:
```python
# Your python code here
print “Hello Pythonic World”
```
becomes
#Your python code here
print "Hello Pythonic World"
Hi Steve,
Perhaps we can put up a sticky on how to post source code? Learning from the old Python/Grasshopper forums, this was always an issue.
Best,
Anders
# Testing Discourse source code posting
class SomeClass(object):
"""docstring for SomeClass"""
def __init__(self, gratitude):
self.gratitude = gratitude
def thanksBrian(self):
"""docstring for method"""
for i in range(self.gratitude):
print "Thanks Brian, looks great!"
test = SomeClass(1000)
test.thanksBrian()