Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Code blocks on mastodon

+5
−0

Recently, I've seen a number of mastodon toots which show code with a special markup, e.g. a light font on a red background. One example can be found at https://wetdry.world/@jessienab/114857900769808977 (the first line of the toot contains some strong language, which I removed for the screenshot below):

Screenshot of a mastodon toot which shows code with a light font on a red background. The text reads "support.mozilla.org/en-US/questions/1493782 about:config Enter : browser.urlbar.trimURLs Set as false"

I've tried to reproduce this on https://fosstodon.org with code fences, <code> ... <\code> etc, but I can't reproduce the result. Is there a special trick or does this require a specific instance/server/client/whatever?

History

1 comment thread

Meanwhile I became aware of some other instances which support code blocks - infosec.exchange - fuz... (1 comment)

1 answer

+5
−0

TLDR: It requires an instance running a special software


The toot in question was posted on the instance wetdry.world, which, as of now, is running Mastodon v4.5.0-alpha.1+chuckya.

chuckya is, according to their Github project:

This is a custom branch of Mastodon/glitch-soc intended for usage on the wetdry.world instance.

Glitch on the otherhand, is a

[...] friendly fork of the open-source social media software Mastodon, with the aim of providing additional features at the risk of potentially less stable software. [...]

One of the listed features is:

which allows the users to use Markdown or HTML to format their toots.

Some other Mastodon compatible servers also allow this.

History

1 comment thread

Thanks for all the information and the links for further reading! (2 comments)

Sign up to answer this question »