What I did was put easily recognizable values for each part of my label, so that when I looked at the code they were easy to find and modify for my script. here is a simple example that puts a few strings on a label as well as writes to an RFID tag:
^XA
^MMT
^PW799
^LL1199
^LS0
^FO19,995^GB760,0,8^FS
^FT159,1078^A0N,83,132^FB433,1,21,C^FH\^CI28^FDthis is my string^FS^CI27
^FT139,1122^A0N,28,30^FB480,1,7,C^FH\^CI28^FD12345678901234567890123456789012^FS^CI27
^RFW,H,1,2,1^FD4000^FS
^RFW,H,2,16,1^FD01234567890123456789012345678901^FS
^PQ1,0,1,Y
^XZ
Then I could modify the code to look like this:
^XA
^MMT
^PW799
^LL1199
^LS0
^FO19,995^GB760,0,8^FS
^FT159,1078^A0N,83,132^FB433,1,21,C^FH\^CI28^FD{}^FS^CI27
^FT139,1122^A0N,28,30^FB480,1,7,C^FH\^CI28^FD{}^FS^CI27
^RFW,H,1,2,1^FD4000^FS
^RFW,H,2,16,1^FD{}^FS
^PQ1,0,1,Y
^XZ
and insert the values that I actually want on the label using python’s str.format
function before I send the code to the printer.