View unanswered posts | View active topics



Reply to topic  [ 9 posts ] 
[FD3][FD4] MSVS style comments 0.2 
Author Message
Member

Joined: Mon Jan 04, 2010 12:36 pm
Posts: 45
Location: google translate slave
Reply with quote
- Adds hotkeys and menu items for Visual Studio-like commenting. This is works like 2 different actions, one for raising comment depth, and other for decreasing. (I use Ctrl-Q and Ctrl-Shift-Q for em.)
- Uses built-in block commenting, when line commenting not availible (xml, html). (realization of that - copypasted from FD code, cause didn' found how to call them from plugin remotely)

Image Download

Image

Update 0.2:
- FD4 supported.
- NET3.5 => NET2.0.
- Code cleaned.

Update 0.2.1:
- Settings default values now must be assigned correctly.

I also have 2 questions:
- Are there any way to call from plugin MainForm.CommentSelection and MainForm.UncommentBlock methods?
- How to realize analog of <button flags="Check:IsEditable"/> in plugin programmatically generated menu item?

_________________
[url=http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8872]Interface: concept[/url]. My Little Plugins: [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=7807][FD3][FD4]MSVS style comments 0.2[/url], [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=8886][FD4]AutohideMenu[/url].


Last edited by garkin on Fri May 11, 2012 11:43 am, edited 14 times in total.



Wed Jan 12, 2011 11:05 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Currently a plugin can not override FD build-in comment/block-comment. And for menu-items you'd have to enable/disable them yourself by listening to FileSwitch event and checking if CurrentDocument.IsEditable.

That said I understand why you did this plugin and I believe this behavior should be integrated in FD as a program setting.


Thu Jan 13, 2011 7:26 am
Profile WWW
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 3061
Location: Finland
Reply with quote
Could you share the sources for direct integration?


Thu Jan 13, 2011 7:29 am
Profile WWW
Member

Joined: Mon Jan 04, 2010 12:36 pm
Posts: 45
Location: google translate slave
Reply with quote
Thanks for answers.
Ok, i'll upload code here, but i need to translate comments to my engrish and slightly to clean up code, so i will not be so ashamed for it. :oops:

_________________
[url=http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8872]Interface: concept[/url]. My Little Plugins: [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=7807][FD3][FD4]MSVS style comments 0.2[/url], [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=8886][FD4]AutohideMenu[/url].


Thu Jan 13, 2011 8:17 am
Profile
Member

Joined: Mon Jan 04, 2010 12:36 pm
Posts: 45
Location: google translate slave
Reply with quote
Uploaded sources.

_________________
[url=http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8872]Interface: concept[/url]. My Little Plugins: [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=7807][FD3][FD4]MSVS style comments 0.2[/url], [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=8886][FD4]AutohideMenu[/url].


Thu Jan 13, 2011 12:08 pm
Profile
Member

Joined: Mon Jan 04, 2010 12:36 pm
Posts: 45
Location: google translate slave
Reply with quote
Update 0.2:
- FD4 supported.
- NET3.5 => NET2.0.
- Code cleaned.

You have decided not to include that behavior to FD itself?

_________________
[url=http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8872]Interface: concept[/url]. My Little Plugins: [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=7807][FD3][FD4]MSVS style comments 0.2[/url], [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=8886][FD4]AutohideMenu[/url].


Last edited by garkin on Mon Oct 17, 2011 8:08 am, edited 1 time in total.



Sun Oct 16, 2011 12:52 am
Profile
Member

Joined: Mon Jan 04, 2010 12:36 pm
Posts: 45
Location: google translate slave
Reply with quote
Update 0.2.1:
- Settings default values now must be assigned correctly.

_________________
[url=http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8872]Interface: concept[/url]. My Little Plugins: [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=7807][FD3][FD4]MSVS style comments 0.2[/url], [url=http://www.flashdevelop.org/community/viewtopic.php?f=4&t=8886][FD4]AutohideMenu[/url].


Mon Oct 17, 2011 8:02 am
Profile
Member

Joined: Thu Feb 02, 2012 5:59 pm
Posts: 78
Location: Alabama
Reply with quote
This is very useful. Thanks!


Sun Mar 25, 2012 10:13 pm
Profile WWW
Member

Joined: Sun Aug 04, 2013 8:32 am
Posts: 14
Reply with quote
This plugin not work with FD 4.4.3 :(, please make new version


Sat Sep 21, 2013 1:13 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.