If you paste html code into book view, it will do the escaping necessary to render them. In code view you would have to use entities manually to represent the the < and > characters. Either way, you will have to use styles to do any colors and/or highlighting.
There is no handy-dandy tag to present code in xhtml (in all renderers). Those are typically forum or blog (or other rendering engine) plugins that allow posts to present code in an easy manner (on THAT particular platform).
|