Hey All,
I know there aren't any bundles for Coldfusion out there so HTML bundle has worked ok. But the one thing that is really annoying is opening a coldfusion document with comments in it.
HTML comments work fine: <!-- something here -->
CFM comments have problems <!--- something else here --->
It shows like it's an incorrect syntax and everything below that point gets dimmed out like it's a comment. Any ideas on how to make these types of comments look right for me? Something quick and easy is preferable.
Thanks. Josh
I just tried your suggestion an it didn't seem to work. Forgive my lack of TextMate knowledge but can I just add something like an "OR" somewhere so that -- and --- would be valid matches?
Josh
On Jul 10, 2006, at 11:06 AM, Richard Smith wrote:
Why not add a space after the begin lookup and a space before the end lookup for the HTML comments in the HTML languages bundle?
On 10 Jul 2006, at 16:39, Josh wrote:
Something quick and easy is preferable.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Sorry, I thought you didn't want CF commands to be highlighted.. you could replace "--" with "(--|---)" for comment.block.html. Example:
{ name = 'comment.block.html'; begin = '<!(--|---)'; end = '(--|---)\s*>'; patterns = ( { name = 'invalid.illegal.bad-comments-or-CDATA.html'; match = '(--|---)'; } ); }
Richard
On 10 Jul 2006, at 17:35, Josh wrote:
I just tried your suggestion an it didn't seem to work. Forgive my lack of TextMate knowledge but can I just add something like an "OR" somewhere so that -- and --- would be valid matches?
Perfect! Thanks so much Richard! This has been driving me nuts for sometime now.
Is this something that I'll need to add each time I update TM?
Josh
On Jul 10, 2006, at 1:17 PM, Richard Smith wrote:
Sorry, I thought you didn't want CF commands to be highlighted.. you could replace "--" with "(--|---)" for comment.block.html. Example:
{ name = 'comment.block.html'; begin = '<!(--|---)'; end = '(--|---)\s*>'; patterns = ( { name = 'invalid.illegal.bad-comments-or-CDATA.html'; match = '(--|---)'; } ); }
Richard
On 10 Jul 2006, at 17:35, Josh wrote:
I just tried your suggestion an it didn't seem to work. Forgive my lack of TextMate knowledge but can I just add something like an "OR" somewhere so that -- and --- would be valid matches?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 10/7/2006, at 20:26, Josh wrote:
Perfect! Thanks so much Richard! This has been driving me nuts for sometime now.
Is this something that I'll need to add each time I update TM?
No -- this change has resulted in a customized HTML grammar in ~/ Library/Application Support/TextMate/Bundles/HTML.tmbundle.
This is not ideal because if the HTML grammar is updated you won’t see these changes.
Instead it’s generally better to create a new grammar which includes the old one, and then use the new one for your files, I have made such CFM grammar which you can click to install, then use that with your CFM files (and change back the HTML grammar, changing it back should bring it back to the default state, but to be 100% sure you may want to remove it from ~/Library/…) -- this also has the advantage that your CFM files then actually show as ColdFusion.
Hi Allan,
I tried changing it back and using the coldfusion.tmlanguage you made but it's not correcting the coldfusion comments. It's looking like it did when I started. Any ideas?
Josh
On Jul 11, 2006, at 2:01 PM, Allan Odgaard wrote:
On 10/7/2006, at 20:26, Josh wrote:
Perfect! Thanks so much Richard! This has been driving me nuts for sometime now.
Is this something that I'll need to add each time I update TM?
No -- this change has resulted in a customized HTML grammar in ~/ Library/Application Support/TextMate/Bundles/HTML.tmbundle.
This is not ideal because if the HTML grammar is updated you won’t see these changes.
Instead it’s generally better to create a new grammar which includes the old one, and then use the new one for your files, I have made such CFM grammar which you can click to install, then use that with your CFM files (and change back the HTML grammar, changing it back should bring it back to the default state, but to be 100% sure you may want to remove it from ~/Library/…) -- this also has the advantage that your CFM files then actually show as ColdFusion.
<ColdFusion.tmLanguage>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Jul 13, 2006, at 3:33 PM, Allan Odgaard wrote:
Did you change the language in the status bar to ColdFusion?
No i didn't. It works now but I assumed that it would recognize the .cfm and set it to coldfusion itself. Will I have to manually set this eachtime I open a .cfm file? Or is there something I need to make it recognize .cfm files automatically?
On 13/7/2006, at 22:41, Josh wrote:
Did you change the language in the status bar to ColdFusion?
No i didn't. It works now but I assumed that it would recognize the .cfm and set it to coldfusion itself.
It would, had you not previously instructed TM to use HTML for your .cfm files.
Will I have to manually set this eachtime I open a .cfm file?
No -- change it once, and TM remembers it.
Sweet! Thanks Allan!
And thanks for making such a great editor. :)
Josh
On Jul 13, 2006, at 3:47 PM, Allan Odgaard wrote:
On 13/7/2006, at 22:41, Josh wrote:
Did you change the language in the status bar to ColdFusion?
No i didn't. It works now but I assumed that it would recognize the .cfm and set it to coldfusion itself.
It would, had you not previously instructed TM to use HTML for your .cfm files.
Will I have to manually set this eachtime I open a .cfm file?
No -- change it once, and TM remembers it.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate