Home Download Buy Blog Forum Support

Having trouble with key mappings...

Having trouble with key mappings...

Postby rfaircloth on Thu Dec 29, 2011 6:14 pm

I want to create a key mapping for ColdFusion coments.

HTML comments use <!-- -->

ColdFusion is almost the same, except one more dash is added, <!--- --->

I looked to see how modify the key mappings, or create a new one,
but I couldn't quite find enough information.

I found this for HTML comments:

{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },

But I don't understand how to define "toggle_comment" (which I am assuming
is defining the characters inserted... is is that args?) Any way, I'm stuck and would
appreciate some guidance.

Thanks!

Rick :)
rfaircloth
 
Posts: 1
Joined: Thu Dec 29, 2011 6:08 pm

Re: Having trouble with key mappings...

Postby hibbelig on Thu Dec 29, 2011 7:10 pm

I think you may need to define a new language. Look at Packages/HTML/Comments.tmPreferences for the HTML comment settings. You can see that they apply to "text.html". I guess maybe you need to add a new language for the ColdFusion markup ("text.cfml"?)and then define the CF comments for that language.
hibbelig
 
Posts: 77
Joined: Wed Dec 21, 2011 11:24 pm

Re: Having trouble with key mappings...

Postby duncan on Mon Jan 02, 2012 9:22 am

Importing this TextMate Cold Fusion bundle might do all you need, maybe?
http://code.google.com/p/cftextmate/
duncan
 
Posts: 17
Joined: Sat Aug 27, 2011 12:59 pm

Re: Having trouble with key mappings...

Postby atomi on Fri Jan 13, 2012 6:35 pm

There is a ST2 specific package for this now https://github.com/SublimeText/ColdFusion
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests