Solve problem with backtick e tilde

Greetings everyone, I am new to the forum, I searched a lot because I had a problem with entering blocks of code, what I found was that someone changed the keyboard layout, but this is not very practical.
Finally I found a solution on the net and wanted to share it with you all.

I have a keyboard with Italian layout (QUERTY), I had problems with entering code blocks for which backtick ( `` ) is required. Attention, I was using quotes ( ‘’ ) and it didn’t work, to get backticks (linux Mint) you have to use ALTGR + '. I succeeded thanks to these pointers

gist.github.com-federicocarboni-36de8d690588ae729a4dc2d026173ce5

Also recommended reading for Windows users, the problem is the same, apart from that the programme works perfectly.