Tips for formatting forum posts

Hi folks :wave:

Here are three tips on how to format a forum post for easier reading:

  1. Format inline code/commands by placing them within single backticks . For example

    `npm start` will look like npm start,
    `daml version` will look like daml version,
    ` curl -sSL https://get.daml.com/ | sh` will look like curl -sSL https://get.daml.com/ | sh etc.

  2. For code blocks/large console outputs use tripple backticks or simply click on the image icon available in the toolbar.

    For example

    ```
    template Message with
    sender: Party
    receiver: Party
    content: Text
    where
    signatory sender, receiver
    ```
    will look like this

template Message with
    sender: Party
    receiver: Party
    content: Text
  where
    signatory sender, receiver
  1. You can also toggle the code using
    [details=“message.daml”]
    ```
    template Message with
    sender: Party
    receiver: Party
    content: Text
    where
    signatory sender, receiver
    ```
    [/details]

    This is also available from the toolbar

    image

    The above code block will end up looking like this

message.daml
template Message with
    sender: Party
    receiver: Party
    content: Text
  where
    signatory sender, receiver

Have fun learning Daml and keep on posting any questions that you have on the forum :grinning:

3 Likes