|
From: | Paul Eggert |
Subject: | Re: Variable-width font indentation |
Date: | Mon, 5 Mar 2018 11:49:31 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/05/2018 11:32 AM, address@hidden wrote:
1: void foo(int a, 2: int b) 3: { 4: ... How is any generic indentation system supposed to know that the "i" on line 2 is supposed to line up with the "i" on line 1?
It assumes the input is fixed-width, and that leading white space is intended to indent with respect to previous lines. Although it'd be some work to get Emacs to do this, I don't offhand see any algorithmic problem here.
[Prev in Thread] | Current Thread | [Next in Thread] |