Skip to main content
That's just code.
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
Rollback to Revision 48
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
That's just code.
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short errors
    • AttributeError: 'super' object has no attribute '__getitem__'.
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
  • Micro-snippets of code (This is especially important for HTML tags or things that resemble HTML tags, since some HTML is allowed in posts and the site will try to render anything between < and >)
    • init()
    • if (boolean) {
    • <form action="..." method="post">
    • <strong>
    • <level>
    • &nbsp;
  • Filenames and filepaths
    • readme.txt
    • .htaccess
    • C:\windows\system32
    • __init__.py
  • Shell commands, or executable names written as you'd write them at your terminal:
    • git
    • cp file1.txt file2.txt
  • Showing a URL that you don't want to render into something clickable
    • http://www.example.com
  • Data
    • form input values
    • text that an algorithm will operate on
  • Short outputs
    • It's printing <function <lambda> at 0x7f7563ceda60>. What does that mean?
Add short errors and short output.
Source Link
wjandrea
  • 34.1k
  • 33
  • 58
Loading
This answer doesn't cover the syntax, so the pun doesn't make sense, isn't relevant, and without context, it's rude to use the name of a serious illness.
Source Link
wjandrea
  • 34.1k
  • 33
  • 58
Loading
Make this easier to find for people coming from "How do I make a good edit?"
Source Link
Anerdw
  • 3.1k
  • 2
  • 30
  • 54
Loading
Rollback to Revision 42
Source Link
TylerH
  • 21.3k
  • 23
  • 263
  • 384
Loading
I've seen too many error messages mangled by quote formatting to recommend it. Inline code formatting works instead for long single lines.
Source Link
wjandrea
  • 34.1k
  • 33
  • 58
Loading
Add back the caveats about tables. These are considerations for editors to take into account.
Source Link
wjandrea
  • 34.1k
  • 33
  • 58
Loading
Add back the first paragraph that directly answered the question and move in the point that these words don't require special formatting at all. Then below we can focus on things that *do* require special formatting. Use emphasis "sparingly" ;)
Source Link
wjandrea
  • 34.1k
  • 33
  • 58
Loading
Added big fat "use more suitable formatting" back in, formatted list.
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
edited body
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
A proposal!
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
added 286 characters in body
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
deleted 17 characters in body
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
Again, we don't want to list every single instance of bad use of code formatting. That list can _never_ be complete, and just saying "don't use code formatting outside of these examples" is enough.
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
Go for an *even more succinct* version of my earlier edits
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
deleted 13 characters in body
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
Rollback to Revision 29
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
further shorten prose
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
Shorten prose a bit
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
Rollback to Revision 27 - I think the edits just rolled back were useful and should stay, for reasons outlined in the comments.
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading
deleted 32 characters in body
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
Rollback to Revision 22
Source Link
Cerbrus
  • 73.3k
  • 65
  • 383
  • 531
Loading
added 9 characters in body
Source Link
Mark Amery
  • 158.8k
  • 15
  • 131
  • 199
Loading