Posting code on the forum


#1

The SkookumScript forum uses Markdown to edit posts.

Surround bits of inline code with back tick ` characters - on western keyboards this is the key below Esc and to the left of 1.

`method_call()`

looks like method_call().

To surround a bunch of code use three back tick characters ```. You can also specify an optional language to use for syntax highlighting: cs, cpp, javasript, java, ruby, python, objectivec, markdown, ini, css, xml, http.

If you specify javascript for the language, the highlighting is decent for SkookumScript. (We will edit the forum software to add a native Sk option in the future.)

```javascript
{1 2 3 4 5}.reverse    // Reverses the order of this list's elements
{"A" "B" "C" "D"}.any  // Select random element from list
```

Looks like:

{1 2 3 4 5}.reverse    // Reverses the order of this list's elements
{"A" "B" "C" "D"}.any  // Select random element from list