Ford Lima 4cyl engines came in 3 sizes, 2.0l, 2.3l, 2.5l, and were used in Rangers from 1983 to 2001
All had the same engine mounts and transmission bolt pattern
So swapping them isn't too hard.
BUT.......they did change from carb to fuel injection and from distributor to full electronic, these all required computer changes.
Good read here on the Lima engines: The Ford Ranger 4-Cylinder Motors - The Ranger Station