It depends on what you want to do with those LEDs. If you want to blink them simultaneously, send 1s to the connected pins, have some delay, send 0s, some more delay and start over.
If you want to turn them on one after the other, you can individually send 1s and 0s, or you could start from 1 pin and shift it continuously. When you reach the end of a port, use a conditional statement to shift it onto the next port.
You should mention what exactly you want to do and also, how many LEDs you have and what you intend to do with those LEDs.