[Gena01 Logo]
May 12, 2008, 04:51:43 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Tags Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: How to search/repleace tabs, paragraph marks, etc.  (Read 1843 times)
0 Members and 1 Guest are viewing this topic.
mpp_piotrp
Newbie
*
Posts: 1


View Profile
« on: June 01, 2006, 01:43:14 AM »
Reply with quoteQuote

How to search/repleace tabs, paragraph marks, etc.
Report to moderator   Logged
therube
Full Member
***
Posts: 114



View Profile
« Reply #1 on: June 01, 2006, 08:29:24 PM »
Reply with quoteQuote

You probably can't.

The find dialog box won't accept things like Alt+key combinations, & there is no method to enter them otherwise.

There is an option to Convert Tabs to Spaces, but I'm not sure at what point those changes would take affect during the edit of a file.
Report to moderator   Logged
Robert
Newbie
*
Posts: 28


View Profile
« Reply #2 on: June 02, 2006, 07:55:39 AM »
Reply with quoteQuote

The rube is right, there were a lot of comments on that in the past (just use search to find them)

sep. 2002 (v.2.xx): Roberto (request for regex)
mar. 2004 (v1.5.0): my request for search/replace options for non-printable characters (and regex).
sep. 2004 (v1.5.0): doddledod, and myself

For conveniance i will quote both my request, as well as Genadi's answer:

Quote
Search & Replace
Would it be possible to enhance the Search & Replace dialog window, so that it would become possible to enter shortcuts for searching/replacing non-printble characters like the < tab >?
(or < even better > use regular expressions  ':<img:'> )

A simple search and replace string could look like this:

search:  \t {for intance for tab}
replace: \n {for instance for newline character}


For expert search & replace it would be nice to be able to use regex.


Quote
ANSWER
I guess \t and \n could be added. I am not sure if I'll be adding full regex support any time soon.


Unfortunately, I don't think that even the \t and \n actually made it into the program, maybe this time...

By the way, 'Convert Tabs to Spaces' takes effect as soon as you press the enter key. (Just try it out, enter a TAB and walk backwards using the left arrow key)


@Genadi
Keep up! Hope you are doing fine!
Report to moderator   Logged
therube
Full Member
***
Posts: 114



View Profile
« Reply #3 on: June 09, 2006, 11:33:51 AM »
Reply with quoteQuote

Quote
The find dialog box won't accept things like Alt+key combinations

Nope, I am wrong about that.
It will allow Alt+key combinations.

Most combinations are "standard", others not?
Some differ from Notepad.
For instance, Alt+233 gives you 'Θ' in notepad, but a 'T' in win32pad.

Couple of charts for reference:
The Extended ASCII Chart
ANSI character set and equivalent Unicode and HTML characters

Thats going to be about as far as I can go with this.  Gennady or others will have to chime in.

And FWIW, "extended" characters display in a "regular" style in 1.5.10, compared to the "typical" darkened (or bolded) style that "normal" text displays as, & also compared to that same darkened style that they displayed in win32pad 1.5.9.1.
Report to moderator   Logged
Robert
Newbie
*
Posts: 28


View Profile
« Reply #4 on: June 13, 2006, 06:17:01 PM »
Reply with quoteQuote

Ah, so that was what you meant!
You were not completely wrong though...

Try entering the Alt+Key combination for TAB or NEWLINE.
You will not be able to, as they will both have "meaning" for the program.
When a dialog is active, TAB will move the focus, and NEWLINE (= ENTER) will execute the default button.
So, there is a need for other means to enter these codes in the Find & Replace window.

By the way, Alt+233 renders the same in notepad as win32pad for me: Ú (Windows XP Home Edition - Dutch)
Report to moderator   Logged
Tabby
Newbie
*
Posts: 3


View Profile
« Reply #5 on: April 29, 2007, 08:11:49 AM »
Reply with quoteQuote

The way to search for tabs or strings including tabs & returns is to highlight the tab or string with the cursor, then do alt e, f. The string with tab/return will already be in the search box.

I wish it could be done the other way round too, ie to put returns into the replace with box, but it doesnt seem to be possible.


Tabby
Report to moderator   Logged
Tags:
Pages: [1]
  Reply  |  Print  
 
Jump to:  

BoldItalicizedUnderlineStrikethrough|GlowShadowMarquee|Preformatted TextLeft AlignCenteredRight Align|Horizontal Rule|Font SizeFont Face
Insert FlashInsert ImageInsert HyperlinkInsert EmailInsert FTP Link|Insert TableInsert Table RowInsert Table Column|SuperscriptSubscriptTeletype|Insert CodeInsert Quote|Insert List
Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips sealed Undecided Kiss Cry
Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Valid XHTML 1.0! Valid CSS!
Page created in 0.043 seconds with 17 queries.