I assume that you want to format programming code in a certain language. If so, try the listings package and read in its manual how to format listings and customize their layout. Floating listings are possible, too.
Not exactly. When my udcode enviroment is longer than one A4 page latex don't move part of it to the next page. Everything is on one page. So it ovverides bottom margin.
fajdes wrote:[...] When my udcode enviroment is longer than one A4 page latex don't move part of it to the next page. Everything is on one page. So it ovverides bottom margin. [...]
It is absolutely unclear which contents the udcode environment will have. From my point of view the declaration as a float is the wrong direction. Prepare a concrete example.