Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Last active June 3, 2024 18:26
Show Gist options
  • Save JamoCA/2b5c8c6676255806c33ab7c7a5c2b0d0 to your computer and use it in GitHub Desktop.
Save JamoCA/2b5c8c6676255806c33ab7c7a5c2b0d0 to your computer and use it in GitHub Desktop.
ColdFusion / CFML / CFScript Code Block Syntax Markdown Test

ColdFusion / CFML / CFScript Code Block Syntax Markdown Test

GitHub uses Linguist to perform language detection and to select third-party grammars for syntax highlighting. You can find out which keywords are valid in the languages YAML file.

CFML tag syntax using cfm

```cfm
<!--- CFML goes here --->
```
<cfset a = now()>
<cfquery name="Result" dbtype="query">SELECT * FROM Table
WHERE ID = <cfqueryparam value="1" cfsqltype="CF_SQL_INTEGER"></cfquery>
<!--- This is a comment --->
<cfcontent variable="text">Hello World</cfcontent>

CFML cfscript syntax using cfc

```cfc
/* cfscript goes here */
```
a = now();
b = queryexecute("SELECT * FROM Table WHERE ID = :id", {"id": 1}, {"dbtype": "query"});
/* This is a comment */
cfcontent(variable="text"){writeoutput("Hello World");}

Configuration from Linguist languages.yml (as of 2024-06-03)

  ColdFusion:
    type: programming
    ace_mode: coldfusion
    color: "#ed2cd6"
    aliases:
    - cfm
    - cfml
    - coldfusion html
    extensions:
    - ".cfm"
    - ".cfml"
    tm_scope: text.html.cfm
    language_id: 64
  ColdFusion CFC:
    type: programming
    color: "#ed2cd6"
    group: ColdFusion
    ace_mode: coldfusion
    aliases:
    - cfc
    extensions:
    - ".cfc"
    tm_scope: source.cfscript
    language_id: 65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment