New line in Zebra ZPL

zebra-printers, zpl

Solution

I suggest you combine the answers from Thorsten and Dharmesh for maximum effect:

^FB400,2,0,C^FO0,50
^FDHello\&World^FS

Doing so will yield a label that looks like this:

The nice things about this approach are two: First, the text block will position and align the new line appropriately. And second, you have complete control over where the line break actually takes place.

Problem

How do I put new line characters for my "Text"? Say for example: ``` Hello World ``` will become ``` Hello World ``` Is there anyway that I can put a new line character for my code like this? ``` ^FT78,76^A0N,28,28^FH\^FDHello\nWorld^FS ``` If the "text" in my label is too long, how would I put another line to it?

Original source