EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
convert special characters to english characters | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| pja | Posted on: 3/2/2012 5:18 pm |
Just popping in ![]() ![]() Joined: 2/15/2008 From: Batemans Bay, NSW, Australia Posts: 20 |
Re: convert special characters to english characters Yutaka,
I have just used this technique to write a snippet/macro that changes curly quotes (single and double), sort and long dashes into their equivalent keyboard characters. In the past I have had to do this as a series of "Find and Replace" tasks. Now its a simple highlight the text and click on the snippet. Thank you very much for the tip. Regards, Peter
|
| dmitryl | Posted on: 3/3/2012 12:10 am |
Just can't stay away ![]() ![]() Joined: 12/25/2009 From: Posts: 73 |
Re: convert special characters to english characters Any help for removing characters using JavaScript?
|
| ToadLoadin | Posted on: 3/3/2012 3:01 am |
Just can't stay away ![]() ![]() Joined: 7/4/2008 From: China Posts: 119 |
Re: convert special characters to english characters You can find it here.
|
| dmitryl | Posted on: 3/3/2012 3:47 am |
Just can't stay away ![]() ![]() Joined: 12/25/2009 From: Posts: 73 |
Re: convert special characters to english characters Thank you!
Now how is it possible to remove double (or more) empty lines? Thank you again for any response! |
| ToadLoadin | Posted on: 3/3/2012 4:57 am |
Just can't stay away ![]() ![]() Joined: 7/4/2008 From: China Posts: 119 |
Re: convert special characters to english characters I think it could be done with this macro:Then, you could use this macro to insert empty lines between each "none-empty" line (forgive my poor english): |
| ToadLoadin | Posted on: 3/3/2012 5:16 am |
Just can't stay away ![]() ![]() Joined: 7/4/2008 From: China Posts: 119 |
Re: convert special characters to english characters I just found that both of the two macro above is not perfect due to lack of checking the setting whether "regular expressions can match new line characters" or not...
![]() |
| dmitryl | Posted on: 3/3/2012 7:30 am |
Just can't stay away ![]() ![]() Joined: 12/25/2009 From: Posts: 73 |
Re: convert special characters to english characters Peter ,
Wanna to share your code? |
| « 1 (2) | |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |






I think it could be done with this macro: