mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	allows for using both ColdFusion Lexers provided by pigments and allows for proper syntax highlighting of cfscript based CFCs Signed-off-by: Sean Coyne <sean@n42designs.com>
		
			
				
	
	
		
			50 lines
		
	
	
		
			936 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			936 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <!--- 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 ---> |