-
Notifications
You must be signed in to change notification settings - Fork 64
Folding loses scope in multi-line text values #33
Comments
Folding is currently indentation-based, so I don't think language-xml can solve this right now. Sorry 😦. |
I am trying to move away from Notepad++ and start using Atom, since I find myself using both Windows and MAC. Atom works on both OS's, while Notepad++ works only on Windows. I work on prepping Cisco Network scripts all the time, and use XML to better organize my changes. However, folding doesn't seem to work, unless I do indent. Problem with doing indents is that when I need to paste config on some of my devices, they don't like indents, and if I remove indents, the folding breaks. In notepad++, it doesn't care about indents. int gig0/1 Also, in notepad++, it doesn't care if I put an ! in front of . Putting an ! is helpful, so that when I paste configs, I can paste the section too into my config, and it will be ignored because of !, and I won't get an Error. ! int gig0/1 ! It just seems that Notepad++ is much more flexible in these terms. It would be nice if Atom can be more flexible, since it can have many functions. |
Also, it appears that its folding from int gig0/1 all the way down, just because it has a slight indent for subsequent commands, even though int gig0/1 is not surrounded with < >. Wish it wouldn't do this, and instead it respected folding on the < > sections, especially when having file saved as an XML. Again it appears that Notepad++ is much more flexible in this. int gig0/1 |
I originally filed this as atom/atom#7934 and was told to refile it here.
Looking at an Ant build file with a target that uses an echo task with an task using a multi-line text value. Something like this
When I fold all, it leaves the <?xml-stylesheet> unfolded, and everything after that line is folded under it. In the first screenshot you can see that everything between two such echo tasks was folder under the first <?xml-stylesheet>. In the second you can see the and the first <?xml-stylesheet> unfolded.
My original submission I thought it was from the
<?xml ...?>
elements but it turned out to be any multi-line text value.The text was updated successfully, but these errors were encountered: