Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

ColdFusion

ColdFusion Sublime Text Package

Subscribe to updates I use ColdFusion


Statistics on ColdFusion

Number of watchers on Github 209
Number of open issues 38
Average time to close an issue 12 days
Main language Python
Average time to merge a PR 20 days
Open pull requests 7+
Closed pull requests 5+
Last commit almost 4 years ago
Repo Created almost 9 years ago
Repo Last Updated almost 3 years ago
Size 625 KB
Organization / Authorsublimetext
Contributors13
Page Updated
Do you use ColdFusion? Leave a review!
View open issues (38)
View ColdFusion activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating ColdFusion for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

ColdFusion Package for Sublime Text

This package is no longer maintained.

Please use jcberquist's excellent package: https://github.com/jcberquist/sublimetext-cfml

Sublime Text 3

The development branch contains a rewrite of the ColdFusion plugin. The only installation method is via Git.

cd Packages/
git clone https://github.com/SublimeText/ColdFusion.git
cd ColdFusion
git checkout development
  • CFLIB Command is not currently working.
  • Tag Operator Completions is not yet implemented
  • CFScript component method completions is not yet implemented
  • Only CF10 Dictionary is imported.

What's New

  • Added Tag Operator completions for cfscript (10/21/12)
  • Added CFScript component method completions (6/28/12)
  • Added auto_close_cfml, auto_indent_on_close settings (6/25/12)
  • Added Tag Attribute completions (6/24/12)
  • Added Command ColdFusion: Insert CFlib UDF (6/2/12)

Features

  • ColdFusion cfml, and script-based CFCs syntax highlighting. (see tmLanguage files)
  • Auto inserts closing hash # (see Default (platform).sublime-keymap)
  • Provides completions that match just after typing an opening angle bracket (see cfml_completions.py)
  • Auto Complete ColdFusion Tags and Attributes (opt. cf7, cf8, cf9 & cf10)
  • ColdFusion specific key bindings (see Default (platform).sublime-keymap)

Installation

The recommended method of installation is via Package Control.

Package Control

  • Follow instructions on https://packagecontrol.io/installation
  • Install using Package Control: Install > ColdFusion package

Using Git

Go to your Sublime Text 2 Packages directory and clone the repository using the command below:

git clone https://github.com/SublimeText/ColdFusion

Download Manually

  • Download the files using the GitHub .zip download option
  • Unzip the files and rename the folder to ColdFusion
  • Copy the folder to your Sublime Text 2 Packages directory

Key bindings

Some packages will override key bindings. If you have problems with a specific key shortcut, you can add it to your User - Key Bindings file Preferences > Key Bindings - User

You can also use sublime.log_commands(True) in the console (ctrl+~) to output key presses and their corresponding command to the console pane.

+# #SELECTION# Ctrl++O <cfoutput>SELECTION</cfoutput>
Ctrl++# <cfoutput>#SELECTION#</cfoutput> Ctrl+Alt+A <cfabort />
Ctrl+Alt+D <cfdump var="#SELECTION#"> Alt++R <cfscript>SELECTION</cfscript>
Ctrl++/ block comment (cfml/cfscript) Ctrl+Alt++/ javadoc comment
Alt+ terminates statement (cfscript) Ctrl++= <cfset SELECTION />

Many more key bindings are available via Sublime Preferences > Key Bindings - Default

Completions and Snippets

Although, this package includes CFScript completions (.sublime-completions) and ColdFusion tag completions (API-injected), it's recommended that you create your own custom snippets using code that fits your particular coding style. To create a new snippet select Tools > New Snippet... from the Sublime Text menu. Use <scope>text.html.cfm - string</scope> for ColdFusion markup snippets and <scope>source.cfscript - string</scope> for CFScript snippets.

Completions in order of priority are:

  • Snippets
  • API-injected completions
  • .sublime-completions files
  • words in the current buffer

The following list contains snippets repositories made available by ColdFusion community members:

  • https://github.com/indynagpal/sublime-stuff
  • https://github.com/bittersweetryan/ColdFusion-Script-Sublime-Snippets

To install snippets just put the .sublime-snippet files in your Packages/User folder or sub-folder (to get to your Packages/User folder select Preferences > Browse Packages... from the Sublime Text 2 menu).

Custom Themes

The following themes optimized for ColdFusion are made available by ColdFusion community members and can be installed with Package Control (http://wbond.net/sublime_packages/community)

  • https://github.com/Siddley/Enhanced.HTML.CFML

If you'd like to customize your favorite theme for ColdFusion support, you can use the entity.name.tag.cf scope in your tmTheme file. For example the following definition will use the color #C87551 for all ColdFusion tags:

<dict>
    <key>name</key>
    <string>Meta</string>
    <key>scope</key>
    <string>meta.tag.block.cf, meta.tag.inline.cf</string>
    <key>settings</key>
    <dict>
        <key>fontStyle</key>
        <string></string>
        <key>foreground</key>
        <string>#C87551</string>
    </dict>
</dict>
<!-- this will color ColdFusion tag name -->
<dict>
    <key>name</key>
    <string>Entity</string>
    <key>scope</key>
    <string>entity.name.tag.cf</string>
    <key>settings</key>
    <dict>
        <key>fontStyle</key>
        <string></string>
        <key>foreground</key>
        <string>#C87551</string>
    </dict>
</dict>

You can use Ctrl+Alt++P to get the scope name at the cursor position for more theme customizing .

Development Branch

To help test the development branch you can install it by dowloading the zip and copying the contents to the Packages/ColdFusion folder.

Alternatively, you can use git to install the ColdFusion package as mentioned above and switch to the development tracking branch using:

git checkout development

Additional Packages

Some additional packages you might want to check out - they are all available through Package Control http://wbond.net/sublime_packages/community

  • http://net.tutsplus.com/articles/news/introducing-nettuts-fetch/ (highly recommended)
  • https://github.com/BoundInCode/AutoFileName (provides file auto-complete)
  • https://github.com/weslly/ColorPicker (choose a color and get the hex code)
  • https://github.com/xobb1t/Sublime-AdvancedNewFile (create new files faster)
  • https://github.com/kemayo/sublime-text-2-git (git commands)
  • https://github.com/facelessuser/ExportHtml (provides printing)
  • https://github.com/dz0ny/LiveReload-sublimetext2 (live reload browser)
  • https://github.com/bgreenlee/sublime-github (github gists and more)
  • https://github.com/virtix/sublime-text-2-mxunit (mxunit testing)
  • https://github.com/seancoyne/farcry-sublimetext (farcry snippets)

These packages require manual installation

  • https://github.com/adampresley/sublime-cf-js-log-finder (debug output finder)
  • https://github.com/timsayshey/Sublime-Text-CFWheels (cfwheels plugin)
  • https://github.com/DominicWatson/SublimeText2CfQuickDocsLauncher (cfml documentation)

License

Copyright (c) 2012

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ColdFusion open issues Ask a question     (View All Issues)
  • over 5 years sublime 3 (build 3083) i have to re-copy the package folder
  • over 5 years inline javascript syntax hightlighting is broken
  • over 5 years Adding line breaks inside hashed function breaks colour coding in .cfm page
  • over 5 years Black screen - ST3 crashes
  • over 5 years Cannot install on ST3 Portable build 3065
  • almost 6 years Autocomplete not working in ST3
  • about 6 years Code complete to uppercase
  • about 6 years Auto-suggest doesn't close properly
  • about 6 years Auto-close problems
  • over 6 years Suggest menu not closing - inserts suggestion instead of a newline
  • over 6 years Highlighting for closing cfmailpart tag not working
  • over 6 years super+alt+f keymap overrides default replace keymap
  • almost 7 years Add color highlighting for known Scopes
  • almost 7 years Attempt to auto-close cfif with a cfelse should not conjure up a /cfelse
  • about 7 years Syntax highlighting depends on semicolons, would be nice if they were optional
  • about 7 years color coding if argument name contains 'yes' or 'no'
  • about 7 years System hangs and ST3 CPU usage rockets
  • about 7 years Function Completion
  • about 7 years ST3: Auto-closing tag doesn't indent properly
  • about 7 years vintageous plugin conflict when trying to indent with ">" in ST3
  • over 7 years Script CFC Suggestions Not Working in SB3
  • over 7 years Package removing NTFS permissions
  • about 8 years Greater sign does not work in my Windows Sublime installation
  • about 8 years Add the ability to <modifier>-click to open template file from cfmodule or cfinclude
  • about 8 years CFM & CFC not considered "source code" for purposes of "auto" word_wrap detection
  • about 8 years Closing curly bracket and cursor position inside tag based cfc <cfscript> block is indented one tabstop to the left of where it should be
  • over 8 years disable auto completion within cfquery
  • over 8 years "Expand selection to scope" in cffunction
  • over 8 years add Railo/OpenBD functions/tags
ColdFusion open pull requests (View All Pulls)
  • Added `git fetch` to ST3 Install
  • fixes #156 autocomplete not working in ST3
  • Update readme.md
  • emphasized ST3 installation reasons & hints
  • Updated default keymapping for cfdump/writedump
  • Updated links in readme file
  • Update Cfscript.tmLanguage
ColdFusion questions on Stackoverflow (View All Questions)
  • Using ColdFusion to consume a webservice
  • coldfusion 10 cfspreadsheet
  • coldfusion json parsing issue
  • using multiple characters as delimiters in Coldfusion list
  • Authenticate against Azure AD - ColdFusion Web Application
  • SurveyMonkey api Coldfusion issue
  • Upload File with Meta-Data (`multipart/form-data`) to ColdFusion 11 REST Service
  • Coldfusion Web Service security for all soap requests
  • Coldfusion change time format to mm/dd/yyyy from SQL form
  • Coldfusion 11 REST Service works with HTTP but not HTTPS (404)
  • coldfusion: listContains and listFind
  • Conditional Formatting Excel File Using ColdFusion
  • ColdFusion parsing JSON
  • Debugging Coldfusion Query with cfloop inside
  • coldfusion categories and unlimited subcategories
  • removed records merge cells from /xl/worksheets/sheet1.xml part coldfusion poi
  • ColdFusion 8 Reading large Excel files
  • Custom `returnFormat` in ColdFusion 10 or 11?
  • ColdFusion: Add application event handlers dynamically
  • Why am I getting "File Not Found" when attempting to access ColdFusion Administrator?
  • ColdFusion 11 SOLR indexing logging conspicuous errors
  • Coldfusion Select Option Value Get Items From Database
  • In ColdFusion, how to I remove the text at the end of my URL?
  • How Do I Parse JSON Return From ColdFusion CFC?
  • ColdFusion 9 cffile error Access is Denied
  • Change filename of attachments on Coldfusion
  • Convert returned CSV data to searchable / usable format in ColdFusion
  • ColdFusion SQL update with form
  • SQL ColdFusion Get id from database and than update a row with form field value
  • Coldfusion CFQUERY time limit exceeded
ColdFusion list of languages used
Other projects in Python
Powered by Autocode - Instant Webhooks, Scripts and APIs
Autocode logo wordmark