Hello Dana,
Thanks for submitting a question about embedding code in a page or post. This falls more under the category of using HTML in WordPress than BoldGrid. I recommend using the WordPress text editor. You can surround your code with “pre” or “code” HTML tags.
This will output “preformatted” text, which is recommended for viewing code. However, in order to get syntax color highlighting, you can install a a WordPress “code snippets” plugin to handle that. This is likely the easiest option because it will help with “escaping” certain characters.
Best,
Christopher M.