Made the equation snippet accept visual selected data