Jump to content
Sign in to follow this  
twelo

Highlight Text, Line or Caret

Recommended Posts

twelo

how to highlight text, line or blinking caret in edit control

i just want to show highlighted or in different color, where my caret is currently blinking

just like when we search in forums match text will highlighted in yellow color

and that mean no selection only highlight

Share this post


Link to post
Share on other sites
Fulano

Could you give some context about where the text to be modified is?


#fgpkerw4kcmnq2mns1ax7ilndopen (Q, $0); while ($l = <Q>){if ($l =~ m/^#.*/){$l =~ tr/a-z1-9#/Huh, Junketeer's Alternate Pro Ace /; print $l;}}close (Q);[code] tag ninja!

Share this post


Link to post
Share on other sites
twelo

in edit control GUICtrlCreateEdit

Posted Image

same as above where line 18 is highlighted and selected text is GUICtrlCreateEdit

i want to know the highlight thing

Share this post


Link to post
Share on other sites
Fulano

That will be application specific, doing that int Scite would be different from Word would be different from in a web page :mellow:


#fgpkerw4kcmnq2mns1ax7ilndopen (Q, $0); while ($l = <Q>){if ($l =~ m/^#.*/){$l =~ tr/a-z1-9#/Huh, Junketeer's Alternate Pro Ace /; print $l;}}close (Q);[code] tag ninja!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.