Code markup does that.
Also, you can always write your code in a text-editor like notepad or whatever you use. After, write a new post (here comes the tricky part), switch to code view, add line like < pre >replace</ pre > (without the extra spaces), then switch back to visual. Select the word “replace” and replace it with code from your text editor.
The wp-config file is not only a simple connect file, but the gateway to all the WordPress functions.
Try this:
<?php
include "[PathToYourBlog]/wp-config.php";
bloginfo('name');
?>