Distinguish "hard" and "soft" line breaks in macros?
Distinguish "hard" and "soft" line breaks in macros?
Is it possible to make a macro (or a search/replace function) distinguish between hard line breaks (Return) and soft ones (shift + return)?
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Distinguish "hard" and "soft" line breaks in macros?
This is very easy. In the Find & Replace window you can use the gear menu to insert Special Characters > Soft Return or a regular "hard" return. Any Find and Replace pattern you come up with there can be turned into a macro if you like.
Re: Distinguish "hard" and "soft" line breaks in macros?
Thanks. I've found that I can search for it with RegEx using "\u2028"