 | | From: | Steve | | Subject: | Visual Slick Edit; Using search and replace to insert returns | | Date: | Wed, 29 Dec 2004 17:16:50 -0500 |
|
|
 | Hi;
I am using VSE 9.04 on both windows and linux.
I often have to clean up some poorly formatted code before I can fix some problems. Often several statements are on the same line making the code unreadable.
I would like to do a search on some symbol like ';' and replace it with ";\r\n" but that doesn't work. I get the literals instead of real newlines or returns.
Any ideas on how I could make that work with search/replace, put real returns everywhere there is a certain symbol?
Thanks in advance
-- Steve http://www.geocities.com/beforewisdom/
Be a healthy Vegan or Vegetarian http://geocities.com/beforewisdom/Veg/healthyVeg.html
"The great American thought trap: It is not real unless it can be seen on television or bought in a shopping mall"
|
|
 | | From: | NowhereMan | | Subject: | Re: Visual Slick Edit; Using search and replace to insert returns | | Date: | Sun, 02 Jan 2005 13:33:09 -0500 |
|
|
 | Steve wrote: > Hi; > > I am using VSE 9.04 on both windows and linux. >
A good source for SlickEdit-only info is http://www.lazyhacker.com/slickedit/forum/.
|
|
 | | From: | Steve | | Subject: | Re: Visual Slick Edit; Using search and replace to insert returns | | Date: | Thu, 30 Dec 2004 09:56:35 -0500 |
|
|
 | Steve wrote: > Hi; > > I am using VSE 9.04 on both windows and linux. > > I often have to clean up some poorly formatted code before I can fix > some problems. Often several statements are on the same line making > the code unreadable. > > I would like to do a search on some symbol like ';' and replace it with > ";\r\n" but that doesn't work. I get the literals instead of real > newlines or returns. > > Any ideas on how I could make that work with search/replace, put real > returns everywhere there is a certain symbol? > > Thanks in advance > > Okay. I figured it out.
I checked the "reg ex box"
and then just put in a '\n' literal.
It worked on windows, I haven't tried it on linux yet.
Steve
-- Steve http://www.geocities.com/beforewisdom/
Be a healthy Vegan or Vegetarian http://geocities.com/beforewisdom/Veg/healthyVeg.html
"The great American thought trap: It is not real unless it can be seen on television or bought in a shopping mall"
|
|
 | | From: | Johan Bezem | | Subject: | Re: Visual Slick Edit; Using search and replace to insert returns | | Date: | Thu, 30 Dec 2004 13:20:47 +0100 |
|
|
 | OK, what works for me (using Visual SlickEdit RE's), quotes used for clarity, omit when specifying the strings: - Search for ';' - Replace with '\13\10' - use SlickEdit Regular Expressions Using Unix/Brief RE's it may be something different.
HTH,
Johan
Steve wrote: > I would like to do a search on some symbol like ';' and replace it with > ";\r\n" but that doesn't work. I get the literals instead of real > newlines or returns. -- JB Enterprises - Johan Bezem Tel: +49 172 5463210 Software Architect - Project Manager Fax: +49 172 50 5463210 Realtime / Embedded Consultant Email: j.bezem@computer.org Design - Development - Test - QA Web: http://www.bezem.de
|
|
 | | From: | Johan Bezem | | Subject: | Re: Visual Slick Edit; Using search and replace to insert returns | | Date: | Thu, 30 Dec 2004 13:11:01 +0100 |
|
|
 | Hi,
I usually use a macro for that, searching for ';' and then do a 'split-line'. The Macro-recorder is more than sufficient. As for "search and replace", I'd have to take a look. BBS
Johan
Steve wrote: > Hi; > > I am using VSE 9.04 on both windows and linux. > ... > I would like to do a search on some symbol like ';' and replace it with > ";\r\n" but that doesn't work. I get the literals instead of real > newlines or returns. > > Any ideas on how I could make that work with search/replace, put real > returns everywhere there is a certain symbol? -- JB Enterprises - Johan Bezem Tel: +49 172 5463210 Software Architect - Project Manager Fax: +49 172 50 5463210 Realtime / Embedded Consultant Email: j.bezem@computer.org Design - Development - Test - QA Web: http://www.bezem.de
|
|