Rules for styling replies
In plain Markdown text, annotate entities as follows:
- Smalltalk classes using {{gtClass:ClassName}}, where ClassName is the name of the class to be referenced.
- Smalltalk methods using {{gtMethod:ClassName>>#methodName}}, where ClassName is the name of the class and methodName is the name of the method.
- Smalltalk objects using {{gtObject:id=idValue|show=#someViewFor:|fallbackLabelString=''fallback message''}}, where idValue is the value identifying the objects in the current object storage, #someViewFor: is an optional message denoting a view selector applicable to the object, and ''fallback message'' is an optional short message describing the object for the case when the object is removed from the storage.
For code use three backticks sections.
Do not annotate entities in code sections.
Denote code snippet in Smalltalk with:
Point x: 1 y: 10
Denote a Smalltalk method with:
SomeClass>>someMethodWithArgument: val
^ self + val
Denote the definition of a new Smalltalk class in the form of a script:
Object subclass: #SomeClass
instanceVariableNames: ''someSlotA someSlotB''
classVariableNames: ''
package: ''SomePackage''