| Author |
Message |
|
cannyshammy
Member
Joined: Mon Apr 14, 2008 9:24 pm Posts: 14
|
 Higlight Selected
Higlight SelectedA simple plugin to highlight all words matching your selection. Screenshot Updates30/03/09 - fixed a crash error when the document opened isnt editable (cheers philipe) 04/05/09 - Big update by David (davgothic) + Added 4 plugin setting options: + Highlight Color (Choose a color for the highlight) + Highlight Whole Words (Choose whether to highlight whole words only or include partial text) + Match Case (Choose whether to match the case of the selection or not) + Add Line Marker (Display a line marker next to highlighted text) + No longer highlights white-space characters DescriptionNotepad++ comes with a feature where if you double click a variable it will highlight all other instances of that variable in the open document. I wanted this feature in FD so i decided to write this plugin. This plugin is very simple and borrows much of the code from the quick-find plugin. Installation+ Copy the DLL to your "C:\Program Files\FlashDevelop\Plugins" directory Usage+ Double click a variable or string to select it, note all other matching strings become highlighted. DLLhttp://gonegothic.com/files/flashdevelop/HighlightSelection/HighlightSelection.dllSourcehttp://gonegothic.com/files/flashdevelop/HighlightSelection/HighlightSelection.zip
Last edited by cannyshammy on Mon May 04, 2009 2:11 pm, edited 2 times in total.
|
| Fri Mar 27, 2009 10:13 am |
|
 |
|
Kulkoff
Member
Joined: Sat Nov 15, 2008 4:00 am Posts: 171
|
 Re: Higlight Selected
Super, thanks... It's good alternative for Color Highlighter plugin. It would be great if some setting can be changeable: for example 1. color of highlite 2. single/double click (by shortcuts) 3. match whole word or not (by shortcuts) 4. on/off plugin (by shortcuts) ... and remove selection 
|
| Fri Mar 27, 2009 2:45 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10735 Location: Paris, France
|
 Re: Higlight Selected
Also, check that the current document is "editable" - it throws an exception when the Startpage appears. Very cool plugin indeed 
|
| Fri Mar 27, 2009 4:15 pm |
|
 |
|
cannyshammy
Member
Joined: Mon Apr 14, 2008 9:24 pm Posts: 14
|
 Re: Higlight Selected
Cheers for the comments guys. I have written a quick fix for the crash thanks Philipe. Thanks for the suggestions Kulkoff, given more time I think I would implement some of them, but for now this plugin will have to remain rather simple  Cheers, Mike
|
| Mon Mar 30, 2009 9:27 am |
|
 |
|
davgothic
Member
Joined: Sat May 02, 2009 10:04 am Posts: 5
|
 Re: Higlight Selected
Have to say I really like this plugin! Cheers!
|
| Sat May 02, 2009 11:29 am |
|
 |
|
davgothic
Member
Joined: Sat May 02, 2009 10:04 am Posts: 5
|
 Re: Higlight Selected
Liked the plugin so much I decided to add a few features! Posting here with Mike's permission. Screenshot UpdatesAdded 4 plugin setting options: Highlight Color (Choose a color for the highlight) Highlight Whole Words (Choose whether to highlight whole words only or include partial text) Match Case (Choose whether to match the case of the selection or not) Add Line Marker (Display a line marker next to highlighted text)
No longer highlights white-space characters Installation+ Open FlashDevelop, Click Tools -> Application Files + Copy the DLL to the "Plugins" directory + Restart FlashDevelop DLLhttp://gonegothic.com/files/flashdevelo ... ection.dllSourcehttp://gonegothic.com/files/flashdevelo ... ection.zipHope you like! Big thanks to Mike!
|
| Mon May 04, 2009 12:38 pm |
|
 |
|
iNils
Sponsor
Joined: Wed Oct 24, 2007 8:56 am Posts: 47 Location: Moscow, Russia
|
 Re: Higlight Selected
Since the plugin don't work lights modified lines.
|
| Mon May 04, 2009 12:58 pm |
|
 |
|
cannyshammy
Member
Joined: Mon Apr 14, 2008 9:24 pm Posts: 14
|
 Re: Higlight Selected
Very nice work David! I have updated the first post to now link to your updated verison.
Im not sure what iNils means, but it definately works for me..
|
| Mon May 04, 2009 2:12 pm |
|
 |
|
iNils
Sponsor
Joined: Wed Oct 24, 2007 8:56 am Posts: 47 Location: Moscow, Russia
|
 Re: Higlight Selected
Sample bug 
|
| Mon May 04, 2009 7:26 pm |
|
 |
|
lazylady
Member
Joined: Wed Jan 04, 2006 8:49 am Posts: 101
|
 Re: Higlight Selected
Great plug-in, how about adding the ability to use a keyboard shortcut? I'd also like to set the alpha for the hi-lighting ( or remove it completely ). I mean, if you choose a color, you'd pretty much want that color to be the highlighted one, not a semi-transparent version of it.
|
| Tue May 05, 2009 7:09 am |
|
 |
|
davgothic
Member
Joined: Sat May 02, 2009 10:04 am Posts: 5
|
 Re: Higlight Selected
iNils, now I see what you mean. If you have "View Modified Lines" set to true you no longer see them with this plugin installed.
I'll have a look at a solution. For now you could go to the Highlight Selected options and set "Add Line Marker" to false, that will disable the line marking functionality but keep the text highlights and the modified lines highlight.
Hopefully this is helpful till a solution is found.
|
| Tue May 05, 2009 8:57 am |
|
 |
|
iNils
Sponsor
Joined: Wed Oct 24, 2007 8:56 am Posts: 47 Location: Moscow, Russia
|
 Re: Higlight Selected
I know on the "Add Line Marker", but I'd like to use it and then. Can we save the state and then to recover it?
|
| Tue May 05, 2009 9:41 am |
|
 |
|
aaulia
Member
Joined: Tue Jul 15, 2008 3:36 am Posts: 160
|
 Re: Higlight Selected
Can this plugin add feature for multiple editing ? I mean if I highlight some word, when I modify it, the changes reflected on all the other highlighted word too.
|
| Thu May 07, 2009 6:03 pm |
|
 |
|
wanzai
Member
Joined: Fri Mar 27, 2009 10:02 am Posts: 7
|
 Re: Higlight Selected
great tool! can't live without it now.
noticed something though: Sometimes function variables start with a dollar sign (e.g. in TweenLite / TweenMax), and I started adapting this naming convention. Just now I noticed that the highlighter doesn't work on $variable.
Maybe something for the next update?
Many thanks
|
| Sat Aug 29, 2009 3:36 pm |
|
 |
|
ryanmills
Member
Joined: Fri Feb 05, 2010 12:37 am Posts: 20
|
 Re: Higlight Selected
Just a thanks for writing, im a big notepad++ user and I love this feature 
_________________ The llama says mooo
|
| Thu Feb 11, 2010 9:42 pm |
|
|