Aleksandra Fedorova :fedora: on Nostr: In both #markdown and #asciidoc we have a possibility to create a nicely highlighted ...
In both #markdown and #asciidoc we have a possibility to create a nicely highlighted code block:
``` python
def test(input=zero):
pass
```
I don't write code snippets though. Usually i write:
```
1. Install the app:
# dnf install app
output
1. Run the app:
$ app --version
output
```
And here # means root and $ means user.
Can someone more capable than me introduce the new style like:
```cli
```
with a proper highlight for such cases?
Published at
2024-07-08 12:20:01Event JSON
{
"id": "236f943fe3e444a20e0ed6a3e51ee7fbc1300ff7221a54517f480d2b5eece5d4",
"pubkey": "572378b71785ffa7cff103804ff3098aa3f3f9b421aedabe28820079265d4831",
"created_at": 1720441201,
"kind": 1,
"tags": [
[
"t",
"markdown"
],
[
"t",
"asciidoc"
],
[
"proxy",
"https://fosstodon.org/users/bookwar/statuses/112750834588403040",
"activitypub"
]
],
"content": "In both #markdown and #asciidoc we have a possibility to create a nicely highlighted code block:\n\n``` python\ndef test(input=zero):\n pass\n```\n\nI don't write code snippets though. Usually i write:\n\n```\n1. Install the app:\n\n # dnf install app\n output\n\n1. Run the app:\n\n $ app --version\n output\n \n```\n\nAnd here # means root and $ means user.\n\nCan someone more capable than me introduce the new style like:\n\n```cli\n\n```\nwith a proper highlight for such cases?",
"sig": "1b0c2aa23f053cb6ebd1cd1e4637c5cb8ad56f7ec6994b537616a711048a429f4e6bc96bcb946639cf1fb54d6fbd105eaf29ec58c7c5dc1e52c5786ddb73db9c"
}