Skip to content
Browse files

#19 - trying different conversions to markdown

  • Loading branch information...
1 parent cbe510d commit 093610d183cdf56f8e49faf191d0cda4287c9c19 @mhenke committed May 18, 2011
Showing with 51 additions and 73 deletions.
  1. +51 −73 cfml100mins.markdown
View
124 cfml100mins.markdown
@@ -59,63 +59,48 @@ 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>
-<pre lang="cfm">
-<code>
-<cfset s = New Sample() />
-<cfoutput>#s.hello()#</cfoutput>
-</code>
-</pre>
- </td>
- <td>
-<pre lang="cfm">
-<code>
-<cfcomponent>
- <cffunction name="hello">
- <cfreturn "Hello, World!" />
- </cffunction>
-</cfcomponent>
-</code>
-</pre>
- </td>
- </tr>
+<tr>
+<td>myprogram.cfm</td>
+<td>Sample.cfc</td>
+</tr>
+<tr>
+<td>
+ <cfset s = New Sample() />
+ <cfoutput>#s.hello()#</cfoutput>
+</td>
+<td>
+ <cfcomponent>
+ <cffunction name="hello">
+ <cfreturn "Hello, World!" />
+ </cffunction>
+ </cfcomponent>
+</td>
+</tr>
</table>
### Script Syntax
<table>
- <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>
-</pre>
- </td>
- <td>
-<pre lang="cfm">
-<code>
-component {
- public string function hello(){
- return( "Hello, World!" );
- }
-}
+<tr>
+<td>myprogram.cfm</td>
+<td>Sample.cfc</td>
+</tr>
+<tr>
+ <cfscript>
+ s = New Sample();
+ writeOutput(s.hello());
+ </cfscript>
</code>
</pre>
- </td>
- </tr>
+</td>
+<td>
+ component {
+ public string function hello(){
+ return( "Hello, World!" );
+ }
+ }
+</td>
+</tr>
</table>
For the script example, `myprogram.cfm` and `Sample.cfc` would have
@@ -126,38 +111,31 @@ beginning/closing `<cfscript>` tags around the instructions.
<table>
<tr>
- <td>myprogram.php</td>
- <td>Sample.php<td>
+<td>myprogram.php</td>
+<td>Sample.php<td>
</tr>
<tr>
<td>
-<pre lang="php">
-<code>
-<?php
-require("Sample.php");
-$s = new Sample();
-echo s->hello();
-?>
-</code>
-</pre>
+ <?php
+ require("Sample.php");
+ $s = new Sample();
+ echo s->hello();
+ ?>
</td>
<td>
-<pre lang="php">
-<code>
-<?php
-class Sample
-{
- public function hello() {
- return "Hello, World!";
- }
-}
-?>
-</code>
-</pre>
+ <?php
+ class Sample
+ {
+ public function hello() {
+ return "Hello, World!";
+ }
+ }
+ ?>
</td>
</tr>
</table>
+
#### Ruby Syntax
<table>

0 comments on commit 093610d

Please sign in to comment.
Something went wrong with that request. Please try again.