Permalink
Browse files

Restored original markdown syntax for code as CFScript is not rendere…

…d properly
  • Loading branch information...
1 parent a846b85 commit 7b1a193303a2bcb8e7f59b02b7637f38843d105f @sgalashyn committed Dec 5, 2011
Showing with 29 additions and 33 deletions.
  1. +29 −33 README.md
View
@@ -33,42 +33,38 @@ There are few other helper (getter/setter) methods, please see component code fo
Step by step use with verbose output:
-```cfm
-ws = CreateObject("SmartyStreets").init(apikey = "YourAuthenticationToken", verbose = true);
-
-params = {
- street = "1600 Amphitheatre Parkway",
- zipcode = "94043",
- city = "Mountain View",
- state = "CA"
-};
-
-result = ws.invoke(argumentCollection = params);
-
-if (result.fault) {
- WriteOutput("Something went wrong: " & result.data);
- WriteDump(var=result.exception, label="Exception");
-}
-else {
- WriteDump(var=result.data, label="Success");
-}
-```
+ ws = CreateObject("SmartyStreets").init(apikey = "YourAuthenticationToken", verbose = true);
+
+ params = {
+ street = "1600 Amphitheatre Parkway",
+ zipcode = "94043",
+ city = "Mountain View",
+ state = "CA"
+ };
+
+ result = ws.invoke(argumentCollection = params);
+
+ if (result.fault) {
+ WriteOutput("Something went wrong: " & result.data);
+ WriteDump(var=result.exception, label="Exception");
+ }
+ else {
+ WriteDump(var=result.data, label="Success");
+ }
Compact format:
-```cfm
-result = CreateObject("SmartyStreets").init("YourAuthenticationToken").invoke(
- street = "1600 Amphitheatre Parkway",
- zipcode = "94043"
-);
-
-if (result.fault) {
- WriteOutput("Something went wrong: " & result.data);
-}
-else {
- WriteDump(var=result.data, label="Success");
-}
-```
+ result = CreateObject("SmartyStreets").init("YourAuthenticationToken").invoke(
+ street = "1600 Amphitheatre Parkway",
+ zipcode = "94043"
+ );
+
+ if (result.fault) {
+ WriteOutput("Something went wrong: " & result.data);
+ }
+ else {
+ WriteDump(var=result.data, label="Success");
+ }
## License

0 comments on commit 7b1a193

Please sign in to comment.