7
6

Why did I get syntax highlight in such format?

7mon 28d ago by sopuli.xyz/u/marshaljm in joplinapp@sopuli.xyz
> 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.

Handy page for similar questions: joplin markdown guide

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

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.mdOr more likely this subset: https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml

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

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