Questions Columns Rows
GitHub icon

ColdFusion

ColdFusion - Programming language

< >

ColdFusion is an open source programming language created in 1995 by Joseph J. Allaire.

#182on PLDB 28Years Old 21kRepos

Adobe ColdFusion is a commercial rapid web application development platform created by J. J. Allaire in 1995. Read more on Wikipedia...


Example from hello-world:
<cfset message = "Hello World"> <cfoutput> #message#</cfoutput>
<!---Hello world in ColdFusion---> <cfset message = "Hello World"> <cfoutput> #message#</cfoutput>
Example from Linguist:
<!--- cfcomment ---> <!--- nested <!--- cfcomment ---> ---> <!--- multi-line nested <!--- cfcomment ---> ---> <!-- html comment --> <html> <head> <title>Date Functions</title> </head> <body> <cfset RightNow = Now()> <cfoutput> #RightNow#<br /> #DateFormat(RightNow)#<br /> #DateFormat(RightNow,"mm/dd/yy")#<br /> #TimeFormat(RightNow)#<br /> #TimeFormat(RightNow,"hh:mm tt")#<br /> #IsDate(RightNow)#<br /> #IsDate("January 31, 2007")#<br /> #IsDate("foo")#<br /> #DaysInMonth(RightNow)# </cfoutput> <cfset x="x"> <cfset y="y"> <cfset z="z"> <cfoutput group="x"> #x# <cfoutput>#y#</cfoutput> #z# </cfoutput> </body> </html> <cfset person = "Paul"> <cfset greeting = "Hello #person#"> <cfset greeting = "Hello" & " world!"> <cfset a = 5> <cfset b = 10> <cfset c = a^b> <cfset c = a MOD b> <cfset c = a / b> <cfset c = a * b> <cfset c = a + b> <cfset c = a - b> <!--- <!-- another <!--- nested --> ---> comment --->
Example from Wikipedia:
http://path/to/components/Component.cfc?method=search&query=your+query&mode=strict

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging cfoutput
Comments
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Stats · Sponsor · Traffic · Traffic Today · Day 278 · feedback@pldb.com · Logout