Hey Linux masters
How do I add coded snippets to posts and replies, without it turning into a one liner
Take this simple function for instance:
simple database cleaner
function dbclean() { profile-cleaner l profile-cleaner i }
how to make it look like the same sample below without the line spaces. Ive added " " to the hash so you can see what I want.
“#” simple database cleaner
function dbclean() {
profile-cleaner l
profile-cleaner i
}
I thought it would be a simple matter of looking at markup language options to contain the code snippet to make it look like in my text editor.
https://www.markdownguide.org/basic-syntax/
Tripple backticks at beginning and end `
x = beverage("pint") x.drink()
Hey illusionist
Thank you
I did try the three backticks but they remained in the post
I will try again
nope!
I was using ’ ’ ’ not three `
thank you
deleted by creator
https://markdown.land/markdown-code-block
Btw:
Rules:
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
Not sure your support question how to format Lemmy replies qualifies…
deepest apologies
thank you for the link
In my undergraduate mind I thought that the markdown language was an open source project
Even so it’s not really a Linux-related topic. It’s a document format. A markup language. 👍 But now you know how it works. You could search online for topics like this as well. DuckDuckGo is a pretty good search engine. 🙂
Markdown is a convention, and then there are Markdown standards in attempts to standardise all the different flavours. I suppose it’s “open source” in the sense that e.g. CommonMark is CC licensed akin to foss software licences, but it’s a specification, not a program with source code.
In any case it has little to do with Linux.