diff --git a/README.md b/README.md index c0a6fd0..69fa099 100644 --- a/README.md +++ b/README.md @@ -9,19 +9,46 @@ $ gem install xcodesnippet ## Usage +### Example + #### Sourcefile.swift ```swift --- title: "Hello, World!" summary: "Prints 'Hello World'" -completion-scope: Function or Method +completion-scopes: + - CodeBlock --- println("Hello, World!") ``` -#### Terminal Command +### Completion Scopes + +#### Objective-C + +* `ClassImplementation` +* `CodeExpression` +* `Preprocessor` +* `ClassInterfaceVariables` +* `All` +* `TopLevel` +* `ClassInterfaceMethods` +* `CodeBlock` +* `StringOrComment` + +#### Swift + +* `TopLevel` +* `ClassImplementation` +* `CodeBlock` +* `All` +* `CodeExpression` +* `StringOrComment` + + +### Terminal Command ``` $ xcodesnippet install path/to/source.m