Can't see indent-lines

Post bug reports when testing beta versions here.
Post Reply
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

Can't see indent-lines

Post by micha_he »

I've a problem, to enable the indent-lines in a standard textfile.

Look here:
indentlines.jpg
indentlines.jpg (68.71 KiB) Viewed 11933 times
Why I do not see any lines at the indent-block ?
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Can't see indent-lines

Post by pjj »

Because you haven't defined syntax for your TXT file? ;)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

Re: Can't see indent-lines

Post 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 !
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Can't see indent-lines

Post 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.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Can't see indent-lines

Post 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?
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Can't see indent-lines

Post by Rickard Johansson »

I also tried indent lines in AutoIt and well...
autoit-indentlines.png
autoit-indentlines.png (13.13 KiB) Viewed 11920 times
it seems to work at my end :?
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

Re: Can't see indent-lines

Post 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 !
Post Reply