How to mark whole string with mouse double click??

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
daniel.337
Posts: 13
Joined: Wed Aug 19, 2009 12:53 pm

How to mark whole string with mouse double click??

Post by daniel.337 »

Hi there,

I would like mark a whole string as e-mails like test@test.com or passwords like zeru4"R+34d completely by double clicking this string with the mouse.

By doing so, only the part before the @ or the + becomes marked.

How and where can I change this behaviour of TextPad?

I hope that there exist an option because I would regret if not, this is very useful.

Daniel
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Yes, you can change this. The setting is specific to each document class, but you can change it for all documents as follows:
  1. Click Configure > Preferences.
  2. Click the plus sign (+) next to Document Classes.
  3. Click Default.
  4. Select Apply these settings to all document classes.
  5. Click the plus sign (+) next to Default.
  6. Click Syntax.
  7. In Other characters in words, enter the characters that you want to include as part of the string, e.g. @."+
User avatar
daniel.337
Posts: 13
Joined: Wed Aug 19, 2009 12:53 pm

Post by daniel.337 »

Great, that looks good! :-)

But the changes do not work, and I wonder why the checkbox "turn on syntax ..." in the suboption "syntax" can not be actived, it remains grey.

And idea?

Daniel
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Try this instead:
  1. Click Configure > Preferences.
  2. Click the plus sign (+) next to Document Classes.
  3. Click the plus sign (+) next to Text.
  4. Click Syntax.
  5. In Other characters in words, enter the characters that you want to include as part of the string, e.g. @."+
You need to repeat this for all document types that you want to make the change for for which there is a Document Class, e.g. C/C++ source files, HTML files, Java source files, etc.
User avatar
daniel.337
Posts: 13
Joined: Wed Aug 19, 2009 12:53 pm

Post by daniel.337 »

Yeah, great! Thank you very much, I am happy! :D

Daniel
Post Reply