EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
Tab / indent / auto indent question | Register To Post |
| Flat | Previous Topic | Next Topic |
| 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 |
| Flat | Previous Topic | Next Topic |
| Subject | Poster | Date |
|---|---|---|
| » |
AbqBill | 8/9/2012 7:11 am |
| |
Yutaka | 8/10/2012 3:46 pm |
| |
AbqBill | 8/11/2012 5:39 am |
| |
Yutaka | 8/11/2012 11:33 am |
| |
AbqBill | 8/11/2012 1:38 pm |
| Register To Post | |


