View unanswered posts | View active topics



Reply to topic  [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Higlight Selected 
Author Message
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
Higlight Selected
A simple plugin to highlight all words matching your selection.

Screenshot
Image

Updates

30/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


Description
Notepad++ 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.

DLL
http://gonegothic.com/files/flashdevelop/HighlightSelection/HighlightSelection.dll

Source
http://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
Profile
Member

Joined: Sat Nov 15, 2008 4:00 am
Posts: 171
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
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12164
Location: London
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
Profile WWW
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
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
Profile
Member

Joined: Sat May 02, 2009 10:04 am
Posts: 5
Have to say I really like this plugin! Cheers!


Sat May 02, 2009 11:29 am
Profile
Member

Joined: Sat May 02, 2009 10:04 am
Posts: 5
Liked the plugin so much I decided to add a few features! Posting here with Mike's permission.

Screenshot
Image

Updates
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

Installation
+ Open FlashDevelop, Click Tools -> Application Files
+ Copy the DLL to the "Plugins" directory
+ Restart FlashDevelop

DLL
http://gonegothic.com/files/flashdevelo ... ection.dll

Source
http://gonegothic.com/files/flashdevelo ... ection.zip

Hope you like! Big thanks to Mike!


Mon May 04, 2009 12:38 pm
Profile
Sponsor

Joined: Wed Oct 24, 2007 8:56 am
Posts: 47
Location: Moscow, Russia
Since the plugin don't work lights modified lines.


Mon May 04, 2009 12:58 pm
Profile
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
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
Profile
Sponsor

Joined: Wed Oct 24, 2007 8:56 am
Posts: 47
Location: Moscow, Russia
Sample bug
Image


Mon May 04, 2009 7:26 pm
Profile
Member

Joined: Wed Jan 04, 2006 8:49 am
Posts: 101
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
Profile
Member

Joined: Sat May 02, 2009 10:04 am
Posts: 5
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
Profile
Sponsor

Joined: Wed Oct 24, 2007 8:56 am
Posts: 47
Location: Moscow, Russia
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
Profile
Member

Joined: Tue Jul 15, 2008 3:36 am
Posts: 170
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
Profile
Member

Joined: Fri Mar 27, 2009 10:02 am
Posts: 7
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
Profile
Member

Joined: Fri Feb 05, 2010 12:37 am
Posts: 20
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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests


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.