{
  "title": "See a language registration",
  "description": "Compare plain text with CodeMirror highlighting for six registered languages. The extension supplies the language registration, file extensions, and comment markers.",
  "scope": "Recorded CodeMirror highlighting and comment-syntax examples. This preview does not embed the Brackets application or run the sample programs.",
  "sourceUrl": "https://github.com/ErickShepherd/more-languages-for-adobe-brackets/blob/62974c8eb31e43b18ecaf88bc80562a159b58b6d/main.js",
  "sourceRevision": "62974c8eb31e43b18ecaf88bc80562a159b58b6d",
  "pluginSha256": "88e5aa459661cb1ae84d1df27daa2c04122dafbc1daadf7739bcec75d48a855e",
  "codeMirrorVersion": "5.62.2",
  "codeMirrorUrl": "https://github.com/codemirror/codemirror5/tree/5.62.2",
  "license": "/data/project-demos/CodeMirror-LICENSE.txt",
  "generatedOn": "2026-10-25",
  "scenarios": [
    {
      "id": "powershell",
      "title": "PowerShell",
      "filename": "temperature.ps1",
      "registration": {
        "name": "PowerShell",
        "mode": "powershell",
        "fileExtensions": [
          "ps1"
        ],
        "lineComment": [
          "#"
        ],
        "blockComment": [
          "<#",
          "#>"
        ]
      },
      "code": "# Convert Celsius to kelvin.\n$celsius = 20\n$kelvin = $celsius + 273.15\nWrite-Output $kelvin",
      "tokens": [
        {
          "text": "# Convert Celsius to kelvin.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "$celsius",
          "style": "variable-2"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "$kelvin",
          "style": "variable-2"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "$celsius",
          "style": "variable-2"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "+",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "273.15",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "Write-Output",
          "style": "builtin"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "$kelvin",
          "style": "variable-2"
        }
      ]
    },
    {
      "id": "swift",
      "title": "Swift",
      "filename": "temperature.swift",
      "registration": {
        "name": "Swift",
        "mode": "swift",
        "fileExtensions": [
          "swift"
        ],
        "lineComment": [
          "//"
        ],
        "blockComment": [
          "/*",
          "*/"
        ]
      },
      "code": "// Convert Celsius to kelvin.\nlet celsius = 20.0\nlet kelvin = celsius + 273.15\nprint(kelvin)",
      "tokens": [
        {
          "text": "// Convert Celsius to kelvin.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "let",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "def"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20.0",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "let",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "kelvin",
          "style": "def"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "+",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "273.15",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "print",
          "style": "variable"
        },
        {
          "text": "(",
          "style": "punctuation"
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": ")",
          "style": "punctuation"
        }
      ]
    },
    {
      "id": "commonlisp",
      "title": "Common Lisp",
      "filename": "temperature.lisp",
      "registration": {
        "name": "Common Lisp",
        "mode": "commonlisp",
        "fileExtensions": [
          "cl",
          "lisp"
        ],
        "lineComment": [
          ";;"
        ]
      },
      "code": ";; Convert Celsius to kelvin.\n(defun kelvin (celsius)\n  (+ celsius 273.15))\n(print (kelvin 20.0))",
      "tokens": [
        {
          "text": ";; Convert Celsius to kelvin.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "(",
          "style": "bracket"
        },
        {
          "text": "defun",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "(",
          "style": "bracket"
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": ")",
          "style": "bracket"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "(",
          "style": "bracket"
        },
        {
          "text": "+",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "273",
          "style": "number"
        },
        {
          "text": ".15",
          "style": "number"
        },
        {
          "text": ")",
          "style": "bracket"
        },
        {
          "text": ")",
          "style": "bracket"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "(",
          "style": "bracket"
        },
        {
          "text": "print",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "(",
          "style": "bracket"
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20",
          "style": "number"
        },
        {
          "text": ".0",
          "style": "number"
        },
        {
          "text": ")",
          "style": "bracket"
        },
        {
          "text": ")",
          "style": "bracket"
        }
      ]
    },
    {
      "id": "fortran",
      "title": "Fortran",
      "filename": "temperature.f90",
      "registration": {
        "name": "Fortran",
        "mode": "fortran",
        "fileExtensions": [
          "F",
          "F03",
          "F08",
          "F90",
          "F95",
          "FOR",
          "FPP",
          "FTN",
          "f",
          "f03",
          "f08",
          "f90",
          "f95",
          "for",
          "fpp",
          "ftn"
        ],
        "lineComment": [
          "!"
        ]
      },
      "code": "! Convert Celsius to kelvin.\nprogram temperature\n  implicit none\n  real :: celsius, kelvin\n  celsius = 20.0\n  kelvin = celsius + 273.15\n  print *, kelvin\nend program temperature",
      "tokens": [
        {
          "text": "! Convert Celsius to kelvin.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "program",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "temperature",
          "style": "variable"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "implicit",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "none",
          "style": "keyword"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "real",
          "style": "builtin"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "::",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20.0",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "celsius",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "+",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "273.15",
          "style": "number"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "  ",
          "style": null
        },
        {
          "text": "print",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "*",
          "style": "operator"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "kelvin",
          "style": "variable"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "end",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "program",
          "style": "keyword"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "temperature",
          "style": "variable"
        }
      ]
    },
    {
      "id": "julia",
      "title": "Julia",
      "filename": "mean_temperature.jl",
      "registration": {
        "name": "Julia",
        "mode": "julia",
        "fileExtensions": [
          "jl"
        ],
        "lineComment": [
          "#"
        ],
        "blockComment": [
          "#=",
          "=#"
        ]
      },
      "code": "# Average three temperature readings.\ntemperatures = [18.5, 20.0, 21.5]\nmean_value = sum(temperatures) / length(temperatures)\nprintln(\"Mean temperature: \", mean_value)",
      "tokens": [
        {
          "text": "# Average three temperature readings.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "temperatures",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "[",
          "style": null
        },
        {
          "text": "18.5",
          "style": "number"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20.0",
          "style": "number"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "21.5",
          "style": "number"
        },
        {
          "text": "]",
          "style": null
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "mean_value",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "=",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "sum",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "temperatures",
          "style": "variable"
        },
        {
          "text": ")",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "/",
          "style": "operator"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "length",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "temperatures",
          "style": "variable"
        },
        {
          "text": ")",
          "style": null
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "println",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "\"Mean temperature: ",
          "style": "string"
        },
        {
          "text": "\"",
          "style": "string"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "mean_value",
          "style": "variable"
        },
        {
          "text": ")",
          "style": null
        }
      ]
    },
    {
      "id": "r",
      "title": "R",
      "filename": "mean_temperature.R",
      "registration": {
        "name": "R",
        "mode": "r",
        "fileExtensions": [
          "R",
          "RData",
          "r",
          "rda",
          "rds",
          "Rproj"
        ],
        "lineComment": [
          "#"
        ]
      },
      "code": "# Average three temperature readings.\ntemperatures <- c(18.5, 20.0, 21.5)\nmean_value <- mean(temperatures)\nprint(mean_value)",
      "tokens": [
        {
          "text": "# Average three temperature readings.",
          "style": "comment"
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "temperatures",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "<-",
          "style": "operator arrow"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "c",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "18.5",
          "style": "number"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "20.0",
          "style": "number"
        },
        {
          "text": ",",
          "style": null
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "21.5",
          "style": "number"
        },
        {
          "text": ")",
          "style": null
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "mean_value",
          "style": "variable"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "<-",
          "style": "operator arrow"
        },
        {
          "text": " ",
          "style": null
        },
        {
          "text": "mean",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "temperatures",
          "style": "variable"
        },
        {
          "text": ")",
          "style": null
        },
        {
          "text": "\n",
          "style": null
        },
        {
          "text": "print",
          "style": "variable"
        },
        {
          "text": "(",
          "style": null
        },
        {
          "text": "mean_value",
          "style": "variable"
        },
        {
          "text": ")",
          "style": null
        }
      ]
    }
  ]
}
