EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
Tab / indent / auto indent question | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| AbqBill | Posted on: 8/9/2012 7:11 am |
Just popping in ![]() ![]() Joined: 4/28/2007 From: Posts: 13 |
Tab / indent / auto indent question Goal: Only auto-indent when line above contains at least one non-whitespace character.
Fresh install of 11.0.5 Copy 'Pascal' configuration (makes 'Pascal2') Select new 'Pascal2' configuration Go to Tools->Properties for Current Configuration->General tab, click Tab/Indent button Use following settings: * Enable Auto Indent * Use Regular Expressions * Tab columns: 4 * Indent columns: 4 Begin Indent: (empty field) End Indent: (empty field) End of Statement: (empty field) Ignore After (Regular Expression): ^\s*$ This does not work as I expected: If I press Enter and line above is empty or has only whitespace, I get an indent. If I uncheck the "Use Regular Expressions" option, it then works as I expected: Indent is only inserted if previous line contains at least one non-whitespace character. Question: Is this the expected behavior, or am I not understanding these options correctly? Thanks Bill |
| Yutaka | Posted on: 8/10/2012 3:46 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2401 |
Re: Tab / indent / auto indent question Hello,
Can you please try the latest beta version at http://www.emeditor.com/modules/newbb/viewforum.php?forum=12 and see if you can reproduce the issue? If you can reproduce the issue, I would appreciate if you can explain the details how I could reproduce the issue. Thank you!
|
| AbqBill | Posted on: 8/11/2012 5:39 am |
Just popping in ![]() ![]() Joined: 4/28/2007 From: Posts: 13 |
Re: Tab / indent / auto indent question Hi Yutaka,
I downloaded latest 11.1.9 beta 32-bit portable and the problem is exactly the same: Uncheck "Use regular expressions", and "ignore after" works. Check it again, and "ignore after" does not work. To reproduce, follow exact steps at beginning of thread. Thanks! Bill |
| Yutaka | Posted on: 8/11/2012 11:33 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2401 |
Re: Tab / indent / auto indent question Hello,
I reproduced this issue, and I now understand. I fixed the issue on v11.1.10. I apologize not trying to reproduce the issue earlier. Thank you!
|
| AbqBill | Posted on: 8/11/2012 1:38 pm |
Just popping in ![]() ![]() Joined: 4/28/2007 From: Posts: 13 |
Re: Tab / indent / auto indent question Thanks!
Bill |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




