Page 1 of 1
Can't see indent-lines
Posted: 04 May 2015 08:07
by micha_he
I've a problem, to enable the indent-lines in a standard textfile.
Look here:

- indentlines.jpg (68.71 KiB) Viewed 13910 times
Why I do not see any lines at the indent-block ?
Re: Can't see indent-lines
Posted: 04 May 2015 08:40
by pjj
Because you haven't defined syntax for your TXT file?

Re: Can't see indent-lines
Posted: 04 May 2015 09:09
by micha_he
But it is not depend from the syntax-highlighting, or is it ? It seems like a global setting !
It doesn't work with AutoIt (au3) and activated syntax-highlighting, too !
Re: Can't see indent-lines
Posted: 04 May 2015 09:33
by pjj
Well, I believe it does depend on a syntax definition: how would editor know where to draw indent lines, and where not to? Even if it's only braces, that matter. Try switching highlighter in a e.g. PHP (or CSS, or JS) file to "text file" to see that not only highlighting of keywords disappears, but also indent lines.
Re: Can't see indent-lines
Posted: 04 May 2015 09:51
by Rickard Johansson
Maybe the name of the feature is misleading. The lines display code structures like if-else statements and also indention. In some situations indention is ignored (e.g. line comments). Which is why syntax information is necessary.
I'm sure it can be made to work for plain text files as well (the indention part, not code structures), but in what situations would it be useful?
Re: Can't see indent-lines
Posted: 04 May 2015 10:04
by Rickard Johansson
I also tried indent lines in AutoIt and well...

- autoit-indentlines.png (13.13 KiB) Viewed 13897 times
it seems to work at my end

Re: Can't see indent-lines
Posted: 04 May 2015 11:25
by micha_he
Yes, with AutoIt-'Loops' works without problems.
But I thought, that it works also with "Indent Block" from menu 'Format' and Auto-Indent from the new 'Wrap lines at margin with line breaks' !?
Misconception while the last translation to german !