Click the Upload Files icon in the message composer.
Select Share a Code Snippet.
Enter or paste the code in the pop-up window.
Enter a title, if required.
Select the programming language from the dropdown.
Enter a comment, if required.
Click Share to post the code snippet.
The code snippet will be posted in the chat.
Click Show All to view the entire code.
Once the Markdown file is sent, click Show All to view the entire file.
You can now preview the Markdown file under the Preview section.
To view the source, click Source.
Note: Markdown file preview is currently unavailable in Cliq Mini.