mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
replaced < and > in pre block
the pre block was already inside a pre/code block in the rendered page, making it harder to read
This commit is contained in:
parent
18b3fb08a8
commit
dc97e779bc
@ -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>
|
||||||
<cfcomponent>
|
<cfset this.hello = "Hello" />
|
||||||
<cfset this.hello = "Hello" />
|
<cfset this.world = "world" />
|
||||||
<cfset this.world = "world" />
|
|
||||||
|
|
||||||
<cffunction name="sayHello">
|
<cffunction name="sayHello">
|
||||||
<cfreturn this.hello & ", " & this.world & "!" />
|
<cfreturn this.hello & ", " & this.world & "!" />
|
||||||
</cffunction>
|
</cffunction>
|
||||||
|
|
||||||
<cffunction name="setHello">
|
<cffunction name="setHello">
|
||||||
<cfargument name="newHello" type="string" required="true" />
|
<cfargument name="newHello" type="string" required="true" />
|
||||||
|
|
||||||
<cfset this.hello = arguments.newHello />
|
<cfset this.hello = arguments.newHello />
|
||||||
|
|
||||||
<cfreturn true />
|
<cfreturn true />
|
||||||
</cffunction>
|
</cffunction>
|
||||||
|
|
||||||
<cffunction name="setWorld">
|
<cffunction name="setWorld">
|
||||||
<cfargument name="newWorld" type="string" required="true" />
|
<cfargument name="newWorld" type="string" required="true" />
|
||||||
|
|
||||||
<cfset this.world = arguments.newWorld />
|
<cfset this.world = arguments.newWorld />
|
||||||
|
|
||||||
<cfreturn true />
|
<cfreturn true />
|
||||||
</cffunction>
|
</cffunction>
|
||||||
|
|
||||||
<cffunction name="getHello">
|
<cffunction name="getHello">
|
||||||
<cfreturn this.hello />
|
<cfreturn this.hello />
|
||||||
</cffunction>
|
</cffunction>
|
||||||
|
|
||||||
<cffunction name="getWorld">
|
<cffunction name="getWorld">
|
||||||
<cfreturn this.world />
|
<cfreturn this.world />
|
||||||
</cffunction>
|
</cffunction>
|
||||||
</cfcomponent>
|
</cfcomponent>
|
||||||
</pre>
|
|
||||||
|
|
||||||
<cfset this.hello = "Hello" />
|
<cfset this.hello = "Hello" />
|
||||||
<cfset this.world = "world" />
|
<cfset this.world = "world" />
|
||||||
|
Loading…
Reference in New Issue
Block a user