srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/cheatsheets/syntax.wiki
blob: 7ac8f3d0d10a9ab74fb5f6ca539563b6b3e91222 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
= Links =
[[Link]] # Use double square brackets to make a link
[[test/Link]] # Use '/' to make a path or a new directory with a link
[[test/Link2|Description of link]] # Use | to give a description of a link to the right and the left side is the location

= Headers = # Goes upto 6 levels
== Header Level 2==
=== Header Level 3===
==== Header Level 4====
===== Header Level 5=====
====== Header Level 6======

= Lists =
- Bullet
* Also Bullet
1. Number
2) Also Number
a) Same idea
B) And Again
i) Roman numerials
II) Also this
# Finally this

= Indenting =
- this is level 1
    ii) can make a child
        c) great for making a hierachy
            IV) and so on...

= Definitions =
singleTerm:: singleDefinition
Term::
:: Definition 1
:: Definition 2

= Toggleable list of todo items =
* [X] Toggleable list item 
ii) [ ] ^space to toggle anywhere on line
    - [ ] right after making a list character you can press space then the keybinding
    - [ ] 

= Text Formatting =
Regular
*bold* # Use astretriks on either side
_italic_ # Use underscores
superScript^something in between karots^ # Doesn't really work in terminal, rather html
subsScript,,same story as above,, # But with two commas

{{{
    Ignore
        Formatting defined
    by Syntax
        can space/indent however you
            want.
}}}

{{{go

package main

import (
    "log"
    "net/http"
)

func main() {

}

# Have to exit to show syntax highlighting

}}}

= Tables =
| Text |       | *random* |    |      |
|------|-------|----------|----|------|
| go   | to    | end      | of | line |
| and  | press | enter    |    |      |

= Key Words =
TODO, DONE, STARTED, FIXME, FIXED, XXX

= Anchor = 
[[#Tables]] # Anchor tag to file using '#' and square brackets, if no arguement then
[[test#Tables|This is a description]]

= Raw URLS =
https://www.google.com
mailto:[email protected] 
ftp:addressToFTP

= External Files =
file:[[~/path/to/file.mp4]]
[[file:~/path/to/file.mp4|file.mp4]] # Use of a Description


----
= Misc =
%% This is a comment and won't show up in HTML

HR
----