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.