Are there any methods to port multi-lined codes quickly?

I really want to port long codes from older patches to 1.60, but they take forever doing it line by line.

Does anyone know how to do it quickly?