Markdown and syntax highlighting

Naninovel-related news and updates.
Locked
User avatar
Elringus
Admin
Posts: 497
Joined: 11 May 2020 18:03

Markdown and syntax highlighting

Post 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

```csharp
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

Locked