Formatting code text for the Forum:
HTLM tags, <, >, and certain special ‘markdown’ characters are formatted as code.
Doublequotes are interpreted as “Smart Quotes” which messes up copy-and-paste to debuggers or code editors.
To make code appear correctly, do one of the following:
- Highlight your code block area and apply the ‘preformatted text’ format using the
</>icon above the editor textarea. - Wrap your code in a single backtick before and after the code, i.e.
`"this" is my code`
- enter line of three backticks ``` before and after your line of code i.e.
"this" is my code
"that" is another line of code
For reference, as I edited this post it looks like the following image (with the “preformatted text” font style button circled:
See also How to post code to the forums without it messing up the appearance for a YouTube video describing this process
