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.

  • Victor@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    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. 🙂