1 # API Notation Syntax for Atom
3 This is a grammar for api notation, a simple notation I've been using for
4 annotating module APIs in specs and other documents.
10 `apm install api-notation`
14 #### Open the Package Manager from Palette Manager
16 1. Press `⌘⇧P` on OSX or `⌃⇧P` on Windows/Linux to open the palette manager
17 2. Look for `Install Packages and Themes`
19 #### Open the Package Manager from Preferences
21 1. Go to `Atom -> Preferences` menu
26 1. Search for `api-notation` in the search bar
31 Open a `.api` file, or set it as your syntax.
33 ## API Notation Reference
35 The most recent reference as of now is in this [gist][api-reference], so
36 check that to be sure. But here's a reproduction of the notation.
39 NameOfClass.WithPossibleNamespace
42 ~> listened events (socket)
43 +> listened events (class/module)
44 -> listened events (instance)
45 <~ dispatched events (socket)
46 <+ dispatched events(class/module)
47 <- dispatched events (instance)
57 Recommended order: class first, then sockets, then instance. Internally:
58 Properties, events, methods.
60 // Anything after two forward slashes is a comment
63 ## How does it look like?
67 ![Like this.][api-example]
69 [api-reference]: https://gist.github.com/benbeltran/4694c46fcec131468e34
70 [api-example]: https://i.imgur.com/5WXuf4u.png