ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Cold​Fusion

by SublimeText ST2

ColdFusion Sublime Text Package

Details

  • 2017.01.06.21.41.02
  • github.​com
  • github.​com
  • 2 weeks ago
  • 1 hour ago
  • 5 years ago

Installs

  • Total 50K
  • Win 43K
  • OS X 6K
  • Linux 1K
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 7 3 4 4 9 11 8 1 4 5 14 13 21 56 14 20 7 9 9 13 2 6 0 3 11 5 6 8 2 7 7 11 7 9 7 1 6 6 11 5 6 9 0 6 5 11
OS X 0 0 0 0 1 3 0 0 0 1 2 1 2 1 0 0 1 1 3 7 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 2 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

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

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:

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)

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>

<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

These packages require manual installation

License

Copyright © 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.