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.
  • Smalltalk packages using {{gtPackage:Package-Name}}, where Package-Name is the name of the package to be referenced. For package tags use {{gtPackage:Package-Name|tag=Package-Tag}}, where Package-Tag is the tag to be referenced in the package Package-Name.

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 using fluid class syntax:

        
Object << #SomeClass
	slots: { #someSlotA . #someSlotB };
	package: 'SomePackage';
	install
        
      
Add other options as needed, such as a package tag (tag:), class-side slots (classSlots:), traits (traits:), or shared variables (sharedVariables:). This list is not exhaustive. Consult ShiftClassBuilder Object << #ShiftClassBuilder slots: { #buildEnvironment . #installingEnvironment . #superclassName . #name . #layoutDefinition . #comment . #commentStamp . #superclass . #newMetaclass . #newClass . #oldClass . #oldMetaclass . #builderEnhancer . #extensibleProperties . #changeComparers . #changes . #metaSuperclass . #superclassResolver . #inRemake . #package . #tag }; sharedVariables: { #BuilderEnhancer }; tag: 'Builder'; package: 'Shift-ClassBuilder' for the available configuration messages and its class comment for an explanation of the fluid syntax. Behavior>>#<< << aString "Return a builder of class FluidClassBuilder. To get a class, this builder should be sent #build. This way we can manipulate and test class definition without being forced to get them added to the environment." ^ ShiftClassBuilder new superclass: self; name: aString; fillClassSideFromEnvironment: self environment; yourself creates this builder. End the cascade by sending install to the class builder to apply the definition; configuring the builder alone does not make the change.