Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Highlight Selected Text

hilight selected text

  • Please log in to reply
7 replies to this topic

#1 ineedh3lp

ineedh3lp

    Wayfarer

  • Active Members
  • Pip
  • 72 posts

Posted 31 January 2012 - 12:51 AM

Hello,

Is there a way to highlight selected text? Like, if I double-click select a word, all the occurances of that word would be highlighted. Can this be set from AutoIt or by using a plugin?

Thank you!







#2 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,099 posts

Posted 31 January 2012 - 01:20 AM

Inside of SciTE?

#3 ineedh3lp

ineedh3lp

    Wayfarer

  • Active Members
  • Pip
  • 72 posts

Posted 31 January 2012 - 01:30 AM

Yes, inside SciTE. Sorry I forgot to mention.

#4 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,099 posts

Posted 31 January 2012 - 01:33 AM

I use this which works well for me. I'm no SciTE expert BTW.

highlight.current.word=1
highlight.current.word.by.style=1
highlight.current.word.colour=#CF6A4C
  • ineedh3lp likes this

#5 ineedh3lp

ineedh3lp

    Wayfarer

  • Active Members
  • Pip
  • 72 posts

Posted 31 January 2012 - 01:36 AM

Excellent! Thank you!

#6 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 224 posts

Posted 01 February 2012 - 02:58 AM

Is there another way so that the current selection is highlited, not only the current word?
I tried with replacing word by selection, but it's not really what i need

#7 jaberwacky

jaberwacky

    RegExp("\m/")

  • Active Members
  • PipPipPipPipPipPip
  • 3,099 posts

Posted 01 February 2012 - 03:02 AM

This might be what you want:


selection.multiple=1
selection.additional.typing=1
selection.additional.fore=#CF6A4C
selection.additional.back=#15191E
selection.additional.alpha=25

#8 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 224 posts

Posted 01 February 2012 - 11:39 AM

Sorry but it's not!
Where can i find a documentation about all those scite Lua commands and vars???

PS: what i mean is that, for example, if i select the letters in brackets: sa[lu]t it highlights all [lu] in the text

Edit: i found!

Edited by matwachich, 01 February 2012 - 11:41 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users