From d9f9f2dc9bf5ede06df8b5d9f407456b8c938582 Mon Sep 17 00:00:00 2001 From: Ryan Willoughby Date: Wed, 29 May 2013 18:13:03 -0600 Subject: [PATCH] [readme] formatting --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d9f80b2cd..3a04d20ae 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The following barcode types are currently supported: `success` and `fail` are callback functions. Success is passed an object with data, type and cancelled properties. Data is the text representation of the barcode data, type is the type of barcode detected and cancelled is whether or not the user cancelled the scan. A full example could be: - +``` var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner"); scanner.scan( @@ -61,7 +61,7 @@ A full example could be: alert("Scanning failed: " + error); } ); - +``` ## Encoding a Barcode ## The plugin creates the object `window.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`. @@ -72,6 +72,7 @@ Supported encoding types: * PHONE_TYPE * SMS_TYPE +``` A full example could be: var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner"); @@ -82,6 +83,7 @@ A full example could be: alert("encoding failed: " + fail); } ); +``` ## Thanks on Github ## @@ -110,4 +112,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +THE SOFTWARE.