Show Menu

Cheatography Cheat Sheet by DaveChild

A cheat sheet for making cheat sheets on Cheatography.

Plain Text Block

This is an example of a plain text block, filled with example content. Text in these blocks is added as-is, including

line breaks.

Code Block

<?php
  // This is a code block.
  // It preserves indentation and
  // uses a monospaced font.

One Column Block

This is a one-column block.
It's useful for listing long items.
It can also be useful for sequences of steps or commands in progra­mming cheat sheets or recipes.
Rows have altern­ating background colours to make the cheat sheet easier to read.

Two Column Block

Block Type:
Two Columns
Useful For:
Transl­ations
 
Key / Value Pairs
 
Lists of small items
Multi-Column Items
If you have an item in column 1 but not column 2, it will span both columns.

Three Column Block

1
1
2
3
5
8
13
21
34
55
These blocks are great for saving space when using lists of small items.

Also, this is the first example of a "­content note", which appears under a content block.

Four Column Block

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Much like the three column block, the four column block is handy for saving space when using lists of small items.

Question and Answer Block

What is this?
A Q&A block displays each question with the answer indented undern­eath.
When is it useful?
It's great for question and answer content!
 

Bar Chart Block

Red
 12
Green
 24
Orange
 88
Blue
 50
The bar chart block takes labels and numbers and generates a chart like the above.

Image Block

The image block is just an image, displayed in a block. In the live version of a cheat sheet (not the PDF) you can click on an image for full size.

Video Block

Video can be pulled in from YouTube or Vimeo, and will be shown on the website but not on the PDFs.

Live Content Block

Label
Value
Year
2014
Month
12
Day
19
A "live conten­t" block pulls its content from a URL, in a specific format. It's great for anything that changes regularly, like live statis­tics, up-to-­the­-minute sports results and tables, stock and share prices, TV schedules and even traffic and weather reports.

Icons

{{fa-rocket}}
{{fa-bold}}
{{fa-check}}
{{fa-leaf}}
{{fa-square-o}}
{{fa-cut}}
Icons work in block titles as well as content. There is a cheat sheet for Font Awesome icons at http:/­/ww­w.c­hea­tog­rap­hy.c­om­/da­vec­hil­d/c­hea­t-s­hee­ts/­fon­t-a­wesome/
 

Formatting Options

Italics (exam­ple)
*text*
Bold (exa­mple)
**text**
Supers­cript (exam­ple)
^text^
Strike­through (exa­mple)
~~text~~
Inline Code (code)
`code`
Asterisk (*)
\*
Carat (^)
\^
Sometimes you want to use a "­*" or "­^" in your content. Add a backslash before those characters (as an escape character) to tell Cheato­graphy to treat them as normal text instead of special formatting charac­ters, like this: \* \^

Special Content

&nbsp;
Insert non-br­eaking space
{{noshy}}
Do not insert shy hyphens
{{nobreak}}
Do not break long lines (only in list blocks)
{{literal}}
Do not format text
{{popup="http://..."}}
Popup URL provided
{{link="http://..."}}
Link to URL provided
{{ac}}
Align text centrally
{{ar}}
Align text right
{{bb}}
Add border at bottom
{{br}}
Add border on right
{{bl}}
Add border on left
{{bt}}
Add border at top

Publishing

You can only publish a cheat sheet once.
Before that, only you can see it, unless you share the "­pre­vie­w" URL.
Newly published cheat sheets are prominent on Cheato­graphy, so make the most of publishing and wait until you're happy with the cheat sheet!
You can still edit a cheat sheet after you've published it.
You can't unpublish a cheat sheet once it's been published.

Language Support

Cheato­graphy supports all languages, as best we can manage.
This means that the web versions of cheat sheets support all of the languages we've seen so far, including Chinese and Japanese.
We're working on right-­to-left language support.

Columns

Blocks are organised into columns by you.
PDFs organise blocks into columns automa­tic­ally.
Try to keep the columns roughly even in length - it makes the cheat sheets easier to use online.

Tips

Use tags - they help people find your cheat sheet!
Pick a dark colour - it makes your cheat sheet easier to read.
Write a good desc­rip­tion so people know what's on your cheat sheet.
Tell people about it when you're finished!
 

Share This Cheat Sheet!

Favourited by 8 Members:

DeeJRoth scitrenb chi-zach skittleys wattslevi justjudy masonjo thechickenfoot

Comments

bradrer bradrer, 03:42 26 Jul 14

How do you end a link tag?

DaveChild DaveChild, 15:46 12 Nov 14

Hi bradrer. Sorry for the slow reply! You don't end a link tag - when you link some text the whole piece of text that follows it will be linked.

Joe Sewell Joe Sewell, 17:05 27 Aug 14

Are you really working on "left-to-right language support," or "right-to-left language support?" It looks like you support English, which is left-to-right, quite well. :)

DaveChild DaveChild, 17:05 27 Aug 14

Whoops! Well spotted, I've fixed that.

yayobelle yayobelle, 01:51 4 Dec 14

I have a question about the links - they don't seem to work for me. when i place the {{popup=""}} tag anywhere in my block, all the text in it gets hyperlinked. How do I fix this?

DaveChild DaveChild, 10:05 4 Dec 14

Hi yayobelle. That's correct, that's how the links work. For your draft, you might be better off using the "one-column" layout for your blocks than using the "text" layout.

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.