If citing ‘code’, especially with quotes in use a back-tick ` before and after. Thus ‘this’ can be made to render as this
'this'. In both cases I just typed an apostrophe but in the first case the forum software auto-corrected it to ‘curly’ (typographic) quote style.
So for using code inline in text or for single lines of code use back-ticks or select the relevant text and use the
</> button at the top of the message drafting box in the browser.
For multi-line code use three back-ticks on a separate line before and after the lines of code. Thus you type:
$Color = “bright red”;
$Price = 42;
$Answer = “42”;
N.B. here, the forum is changing the srtriaght double quote I typed to curly ones. The above, when posted, is rendered as:
$Color = "bright red";
$Price = 42;
$Answer = "42";
The syntax colouring is a by-product and an approximation as the forum software doesn’t have Tinderbox-specific code syntax plug-in. However, it is generally helpful—as in the last example: the attribute references are in cyan, quoted strings are in red and numbers are in black. Notice how the twop instances of the value
42 are rendered differently as one is a string and one a number.
Using the quote mechanism, i.e. the button in the drafting box with a right double curly quote symbol, will not stop the forum altering the quote style though some poster seem to hope it will!
Side-note to self. This is probably the germ of what should be a sticky post in the forum to help new (forum)n users.