When coding in AS3 in TextMate I like to put in some nice JavaDoc style comments:
/** * Fetch up a dice from the server * @param Number dice_num Which dice to get (1-6) * @return NetDice Populated dice info object * @access private */
All well and good. I put a tab after the keyword declaration, so I'd type:
@param<tab>Number<tab>dice_num<tab>etc...
For the first row. When I try to populate the return value:
@return<tab>...
The value gets automatically converted into this:
@↩
Why does this happen? What can I do to turn it off? My workaround is to type this instead:
@return<space><tab>...
The go back and delete the space but that's just a PITA. Any suggestions?
G.
-- Being drunk is feeling sophisticated without being able to say it. http://www.playr.co.uk/
On 14.11.2008, at 18:43, Gaby Vanhegan wrote:
When coding in AS3 in TextMate I like to put in some nice JavaDoc style comments:
/**
- Fetch up a dice from the server
- @param Number dice_num Which dice to get (1-6)
- @return NetDice Populated dice info object
- @access private
*/
@return<tab>...
The value gets automatically converted into this:
@↩
1) Did you set the language grammar to Actionscript 3 ?
2) Place to caret just after the 'n' of @return and press CTRL+SHIFT+P to show the current scope. What do you see? Anything with 'html'?
This behaviour actually only occurs if the scope is an HTML one.
--Hans
The value gets automatically converted into this:
@↩
This behaviour actually only occurs if the scope is an HTML one.
The scope contains text.html - which is correct as AsDoc blocks can contain HTML. Similar behavior can be seen in the Java bundle. I'll take a look and find a way to stop it happening.
Cheers, Simon
On 15 Nov 2008, at 11:02, Simon Gregory wrote:
The value gets automatically converted into this:
@↩
This behaviour actually only occurs if the scope is an HTML one.
The scope contains text.html - which is correct as AsDoc blocks can contain HTML. Similar behavior can be seen in the Java bundle. I'll take a look and find a way to stop it happening.
It’s caused by a snippet in the HTML bundle, so probably the only thing that can be done about it, is to remove that snippet (or change its trigger).
I used these a lot when I wrote the TM manual, which is why I added them to the bundle, but now that I have multi-stroke key bindings¹ setup, I don’t use them anymore, so I won’t insist on keeping them.
Of course the OP can just locally change the trigger/remove the item until we agree on whether or not to change the HTML bundle.
¹ http://blog.macromates.com/2006/multi-stroke-key-bindings/
On 16 Nov 2008, at 06:00, Allan Odgaard wrote:
On 15 Nov 2008, at 11:02, Simon Gregory wrote:
The value gets automatically converted into this:
@↩
This behaviour actually only occurs if the scope is an HTML one.
The scope contains text.html - which is correct as AsDoc blocks can contain HTML. Similar behavior can be seen in the Java bundle. I'll take a look and find a way to stop it happening.
It’s caused by a snippet in the HTML bundle, so probably the only thing that can be done about it, is to remove that snippet (or change its trigger). ... Of course the OP can just locally change the trigger/remove the item until we agree on whether or not to change the HTML bundle.
Which part of the bundle do I need to edit/remove to do that?
G.
-- Junkets for bunterish lickspittles since 1998! http://www.playr.co.uk/
On 16 Nov 2008, at 20:35, Gaby Vanhegan wrote:
[...] Which part of the bundle do I need to edit/remove to do that?
Bundle Editor → Edit Snippets…
Then unfold the HTML bundle and locate the item named ‘↩’.
Just hit delete with the item selected or clear the tab trigger text field.
On 16 Nov 2008, at 18:06, Allan Odgaard wrote:
On 16 Nov 2008, at 20:35, Gaby Vanhegan wrote:
Which part of the bundle do I need to edit/remove to do that?
Bundle Editor → Edit Snippets…
Then unfold the HTML bundle and locate the item named ‘↩’.
Just hit delete with the item selected or clear the tab trigger text field.
Trick == done, thank you!
G.