Scrolling Code Box

Hello folks wonder if anyone could tell me how to insert a scrolling code box in a post ?

push the # button or [ code ] code [ /code ]

thank you!