Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#19 - trying different conversions to markdown

  • Loading branch information...
commit e62592ff239be37609a36fc792d78b7fc3e4a007 1 parent 35b3929
Mike Henke authored
Showing with 47 additions and 81 deletions.
  1. +47 −81 cfml100mins.markdown
128 cfml100mins.markdown
View
@@ -58,100 +58,66 @@ We might have a file named `myprogram.cfm` and `Sample.cfc` like this:
### Tag Syntax
-<table>
-
-<tr>
-
-<td>
-myprogram.cfm
-
-</td>
-
-<td>
-Sample.cfc
-
-</td>
-
-</tr>
-
-<tr>
-
-<td>
+<<table>
+ <tr>
+ <td>myprogram.cfm</td>
+ <td>Sample.cfc</td>
+ </tr>
+ <tr>
+ <td>
<pre lang="cfm">
-<code>\
-<cfset s = New Sample() />\
-<cfoutput>\#s.hello ()\#</cfoutput>\
-</code>\
-
+<code>
+<cfset s = New Sample() />
+<cfoutput>#s.hello()#</cfoutput>
+</code>
</pre>
-
-</td>
-
-<td>
+ </td>
+ <td>
<pre lang="cfm">
-<code>\
-<cfcomponent>\
- <cffunction name="hello">\
- <cfreturn "Hello, World!" />\
- </cffunction>\
-</cfcomponent>\
-</code>\
-
+<code>
+<cfcomponent>
+ <cffunction name="hello">
+ <cfreturn "Hello, World!" />
+ </cffunction>
+</cfcomponent>
+</code>
</pre>
-
-</td>
-
-</tr>
+ </td>
+ </tr>
</table>
+
### Script Syntax
<table>
-
-<tr>
-
-<td>
-myprogram.cfm
-
-</td>
-
-<td>
-Sample.cfc
-
-</td>
-
-</tr>
-
-<tr>
-
-<td>
+ <tr>
+ <td>myprogram.cfm</td>
+ <td>Sample.cfc</td>
+ </tr>
+ <tr>
+ <td>
<pre lang="cfm">
-<code>\
-<cfscript>\
-s = New Sample ();\
-writeOutput (s.hello ());\
-</cfscript>\
-</code>\
-
+<code>
+<cfscript>
+s = New Sample();
+writeOutput(s.hello());
+</cfscript>
+</code>
</pre>
-
-</td>
-
-<td>
+ </td>
+ <td>
<pre lang="cfm">
-<code>\
-component {\
- public string function hello (){\
- return ( “Hello, World!” );\
- }\
-}\
-</code>\
-
+<code>
+component {
+ public string function hello(){
+ return( "Hello, World!" );
+ }
+}
+</code>
</pre>
-
-</td>
-
-</tr>
+ </td>
+ </tr>
</table>
+
For the script example, `myprogram.cfm` and `Sample.cfc` would have
beginning/closing `<cfscript>` tags around the instructions.
Please sign in to comment.
Something went wrong with that request. Please try again.