adsense

How to Include Code Samples in a Wordpress Post





1. Open your browser and log in to your WordPress admin interface. It will be located at www.yoursite.com/wp-admin. If your WordPress installation is in a sub-folder, then it will be located at www.yoursite.com/yourWordPressinstallation/wp-admin.
2. Click 'Add New' under 'Posts' in the left-hand navigation menu.

3. Click the 'HTML' tab at the top of the WYSIWYG editor.
4. Type '
' in the editor interface.
5. Enter the code you want displayed in your WordPress post immediately after the
tag. The
tag will reduce the text to monospaced type so that it represents code visually as well.
6. Change all of the left and right arrows, slashes and other symbols within the code to either character entities or extended characters to represent the symbols. Some common character entities are listed here (see Resources for a more complete list):
= >/ = /] = ][ = [' = '' = '
7. Type '
' immediately after the code you want displayed in your WordPress post.
8. Save your post and close WordPress or continue creating your post.

Comments

0 Responses to "How to Include Code Samples in a Wordpress Post"

Post a Comment

Popular Posts

About