Why did I get syntax highlight in such format?

> something
> something

For such code block, I was surprised to get syntax highlight, but I even don't know which language that Joplin is using for it.

something

No highlight at all.

7 points · 6 comments · view on lemmy.world

6 Comments

Artisian@lemmy.world · 3 pts · 302d

Handy page for similar questions: joplin markdown guide

MagicShel@lemmy.zip · 2 pts · 302d (1 reply)

```markdown <--- this controls highlighting
> something
> something
```

Experiment with putting plaintext, java, typescript, etc and you'll get different highlights.

``` <--- nothing
something
```

No highlight at all.

Exactly

Artisian@lemmy.world · 2 pts · 302d

I found an alleged list of supported commands (that you could use in place of markdown in the above): https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md Or more likely this subset: https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml

marshaljm@sopuli.xyz · 1 pts · 301d

marshaljm@sopuli.xyz · 1 pts · 302d

Surprised, even in this post, it explained triple "`" into code block.

marshaljm@sopuli.xyz · 1 pts · 301d

I thought I found the answer from https://joplinapp.org/help/apps/markdown/