Forum etiquette -- pasted text VS pastebin

newbie here … need suggestions on forum etiquette regarding posting long blocks of text … I have a bash shell script I wish to contribute of 130 lines … do I just cut/paste it or dump it somewhere like http://pastebin.com ?

… on the assumption the forum itself does not have a public file upload/download function :grinning:

Verne

Generally, you can post it within a Markdown code block. You can specify it as bash code like this (close is with three more ` marks:

```bash

I prefer folks not link to other sites, as we have no control over them, and they could disappear at any time (whereas we’ve migrated the content of this forum through five different forum apps spanning 15 years, so nothing ever posted here has disappeared).

This forum does allow uploads of some file types, but I don’t see any reason a shell script (of reasonable length) shouldn’t be posted in an easily visible form. People probably want to customize it, or at least read over it carefully before running it, anyway.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.