1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 20:40:42 +02:00

Merge pull request #2069 from edm00se/patch-1

ColdFusion replaced < and > in pre block
This commit is contained in:
ven
2015-12-18 18:40:11 +01:00

View File

@@ -233,40 +233,38 @@ ColdFusion started as a tag-based language. Almost all functionality is availabl
<em>Code for reference (Functions must return something to support IE)</em> <em>Code for reference (Functions must return something to support IE)</em>
<pre> <cfcomponent>
&lt;cfcomponent&gt; <cfset this.hello = "Hello" />
&lt;cfset this.hello = "Hello" /&gt; <cfset this.world = "world" />
&lt;cfset this.world = "world" /&gt;
&lt;cffunction name="sayHello"&gt; <cffunction name="sayHello">
&lt;cfreturn this.hello & ", " & this.world & "!" /&gt; <cfreturn this.hello & ", " & this.world & "!" />
&lt;/cffunction&gt; </cffunction>
&lt;cffunction name="setHello"&gt; <cffunction name="setHello">
&lt;cfargument name="newHello" type="string" required="true" /&gt; <cfargument name="newHello" type="string" required="true" />
&lt;cfset this.hello = arguments.newHello /&gt; <cfset this.hello = arguments.newHello />
&lt;cfreturn true /&gt; <cfreturn true />
&lt;/cffunction&gt; </cffunction>
&lt;cffunction name="setWorld"&gt; <cffunction name="setWorld">
&lt;cfargument name="newWorld" type="string" required="true" /&gt; <cfargument name="newWorld" type="string" required="true" />
&lt;cfset this.world = arguments.newWorld /&gt; <cfset this.world = arguments.newWorld />
&lt;cfreturn true /&gt; <cfreturn true />
&lt;/cffunction&gt; </cffunction>
&lt;cffunction name="getHello"&gt; <cffunction name="getHello">
&lt;cfreturn this.hello /&gt; <cfreturn this.hello />
&lt;/cffunction&gt; </cffunction>
&lt;cffunction name="getWorld"&gt; <cffunction name="getWorld">
&lt;cfreturn this.world /&gt; <cfreturn this.world />
&lt;/cffunction&gt; </cffunction>
&lt;/cfcomponent&gt; </cfcomponent>
</pre>
<cfset this.hello = "Hello" /> <cfset this.hello = "Hello" />
<cfset this.world = "world" /> <cfset this.world = "world" />