What to eat?
There's a lot of info out there on this, hard to sort through.
I would suggest a regular meal of veggies, carbs, and protein maybe 2 or 3hrs before workout. Perhaps a light snack in the meantime, then, very shortly before your workout (<30mins), a protein shake or smoothie with some simple carbs blended in, like fruit, banana works well, or a partial serving of carb-based weight gainer, maybe a little oatmeal blended in.
During your workout is also a good time to replenish. Many ppl neglect this. I did for a long time. Water lightly mixed with some carbs and protein, I used to use "carbo gain" and a half serving whey shake mix, mixed into my big water bottle, along with a 'nuun' hydration tablet. Nowadays I don't use a carb powder and just blend a banana into my water.
After workout, some ppl say have a protein shake immediately but new studies say it's not as important as we once thought. Personally, sometimes I immediately have a protein shake (with added carbs), or sometimes I wait and go home & have a full meal, lots of veggies, carbs(usu. rice) and protein.
It can change, of course, depending on your goals, your workouts, and how you feel.