Markdown and syntax highlighting

Posted: 05 Aug 2020 18:18
by Elringus

It's possible to use markdown when posting on this forum; it allows to format the text, insert links, images, quotes, tables and code snippets.

Some examples:

FeatureMarkdownResult
Text style*italic* **bold** ~~strikethrough~~italic bold strikethrough
HyperlinkCheck our [website](https://naninovel.com).Check our website.
Pre-formatted textUse the `@camera` command.Use the @camera command.
Header# Chapter 1Chapter 1
Image![](https://forum.naninovel.com/images/nani.png)Image

To insert a block of nani script with syntax highlighting:

Code: Select all

```nani
# Label
; Comment
@command parameter:value
Generic text [i].
```

— will result in:

Code: Select all

# Label
; Comment
@command parameter:value
Generic text [i].

It's also possible to highlight other code this way, eg for C#:

Code: Select all

```cs
var foo = Bar();
```

— will result in:

Code: Select all

var foo = Bar();

To insert a YouTube video (text inside the tags is the video ID):

Code: Select all

[youtube]lRxIKDU9z4k[/youtube]

— will result in:

Find more examples on the help page: app.php/help/markdown