Also, it would be great to embed a pagebreak in the ZPL editor so that when you print your macro you can force a new page at a desired point, like before subroutines.
You’re definitely correct (and not talking to yourself) but I feel like I’ve been making the argument to improve the ZPL editor for years and now I just feel hopeless 😪.
Based on the “Additional Copyright Information”, I believe the ZPL editor is actually the open source AvalonEdit for WPF:
So, anything AvalonEdit can do (code folding, automatic indent, code completion, /// documentation, find/replace all, etc) the ZPL editor can theoretically do. Although Notepad++ doesn’t use AvalonEdit (Notepad++ is written in C++), basically anything Notepad++ can do AvalonEdit can probably also do.
I’m not sure about that the pagebreak though since this is primarily a Word concept and not a generic text editor concept.
As for the \n and \tab, it’s not a good solution but you can use $TAB() and $NEWLINE() string functions to achieve this:
BTW, one benefit of using $TAB() to provide spacing between data items if that when you copy and paste into excel, each data item goes into a unique cell.