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
 » Tab / indent / auto indent question AbqBill 8/9/2012 7:11 am
     Re: Tab / indent / auto indent question Yutaka 8/10/2012 3:46 pm
       Re: Tab / indent / auto indent question AbqBill 8/11/2012 5:39 am
         Re: Tab / indent / auto indent question Yutaka 8/11/2012 11:33 am
           Re: Tab / indent / auto indent question AbqBill 8/11/2012 1:38 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文