Felix,
for lenses lenses with a screw mount you either need an adapter with enough material at the right place or you buy an an adapter with recesses already milled in from John Milich (recommended).
For lenses with the M mount (or an appropriate LTM adapter), use a permanent black pen to code the lens. Double check with the info button with a photo taken after the coding, if the lens is recognized.
My suggestion here: if you have more than one lens to code, get the M-coder. You already have then two correct pens and a stencil which works.
Once your coding is proven to be recognized correctly, you can then get a dremel and create the (to be black) recesses yourself. Then fill the recesses with paint / nail varnish. It's a small job, but has to be done properly. Make sure the lens is shielded correctly against metal dust.
Keep in mind that lens coding relies on
a) the correct code
b) the proper lens flange bringing up the correct frame lines
Especially with earlier Zeiss lenses the lenses from 24mm on sometimes don't have the proper flange (that's OK for film cameras). The frame lines of course do not matter with regard to the view finder. Look at it just another part of the code. Leica may have introduced because of their lenses with variable focal length (WATE and MATE).
Some non-leica lenses have their flange screws at the wrong place, just right in the coding area. Usually, this is not a big problem, though.
Cheers
Ivo