While solving a question I encountered a situation when there was a subtle difference between the two:
After meeting together near Mediolanurn in 313, Roman Emperors Constantine Augustus and Licinius Augustus issued The Edict of Milan in the hope of/with the hope of ending years of internal religious strife and the persecution of minorities.
I think with sounds more appropriate. But I am not sure about the usage of in.
Could anyone explain the correct usage in this sentence? Also give some instances where we can use the latter one.