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>
|
||||
|
||||
<pre>
|
||||
<cfcomponent>
|
||||
<cfset this.hello = "Hello" />
|
||||
<cfset this.world = "world" />
|
||||
<cfcomponent>
|
||||
<cfset this.hello = "Hello" />
|
||||
<cfset this.world = "world" />
|
||||
|
||||
<cffunction name="sayHello">
|
||||
<cfreturn this.hello & ", " & this.world & "!" />
|
||||
</cffunction>
|
||||
<cffunction name="sayHello">
|
||||
<cfreturn this.hello & ", " & this.world & "!" />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="setHello">
|
||||
<cfargument name="newHello" type="string" required="true" />
|
||||
<cffunction name="setHello">
|
||||
<cfargument name="newHello" type="string" required="true" />
|
||||
|
||||
<cfset this.hello = arguments.newHello />
|
||||
<cfset this.hello = arguments.newHello />
|
||||
|
||||
<cfreturn true />
|
||||
</cffunction>
|
||||
<cfreturn true />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="setWorld">
|
||||
<cfargument name="newWorld" type="string" required="true" />
|
||||
<cffunction name="setWorld">
|
||||
<cfargument name="newWorld" type="string" required="true" />
|
||||
|
||||
<cfset this.world = arguments.newWorld />
|
||||
<cfset this.world = arguments.newWorld />
|
||||
|
||||
<cfreturn true />
|
||||
</cffunction>
|
||||
<cfreturn true />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="getHello">
|
||||
<cfreturn this.hello />
|
||||
</cffunction>
|
||||
<cffunction name="getHello">
|
||||
<cfreturn this.hello />
|
||||
</cffunction>
|
||||
|
||||
<cffunction name="getWorld">
|
||||
<cfreturn this.world />
|
||||
</cffunction>
|
||||
</cfcomponent>
|
||||
</pre>
|
||||
<cffunction name="getWorld">
|
||||
<cfreturn this.world />
|
||||
</cffunction>
|
||||
</cfcomponent>
|
||||
|
||||
<cfset this.hello = "Hello" />
|
||||
<cfset this.world = "world" />
|
||||
|
Loading…
Reference in New Issue
Block a user