• All, Gmail is currently rejecting messages from my host. I have a ticket in process, but it may take some time to resolve. Until further notice, do NOT use Gmail for your accounts. You will be unable to receive confirmations and two factor messages to login.

Code Samples

As we are a support and development community, it is vitally important you post code or text samples in a readable format. The forum is equipped to display a dizzying number of coding languages.

Code Blocks

To post a block of code, click more options, then click code.

1674662318563.png

1674662414602.png

The code window will open. Paste your text or script into the box. Use the Language drop-down to select the code format. If you are posting a text sample (ex. from a model sheet), then choose General Code. If you are posting script, then choose C. Alternatively, you can select Rich Code. Rich Code is formatted as General Code, but lets you add colors and other text effects.

1674662484077.png

When you are done, press Continue. Your code is pasted into the post with code tags. ChronoCrash will present the code in a much more readable block. To compare, this is what a bit of script looks like pasted without code tags:

void example_function()
{
char test_text = "Hello world!";
log("\n " + test_text);
}

The same script with code tags:

C:
void example_function()  {       char test_text = "Hello world!";       log("\n " + test_text);  }

Inline Code

You can insert some code as part of normal post text. This works like other formatting options such as bold or italics. Highlight the portion you want to format as inline code, then choose inline code. Inline code looks like this.

1674663709426.png

For further details, see here.
Back
Top Bottom