The ReachBy Help and Information

Have a question about ReachBy? Problem? Idea? Share them here.

Brought up Dec 22, 2009

How to Display Code Samples

Use these recipes to show source code samples in your posts using ReachBy's Wiki-like markup.

Markup for Monospace Font

If you need to indicate a keyword, variable, or function name in the regular content, use markup for the monospace font. Along with other markup in the paragraph, simply wrap up the keyword in double equal signs, e.g.

 Every HTML document **must** have a ==TITLE== element.

Result: Every HTML document must have a TITLE element.

Block of Source Code

You can also insert an isolated block with the source code in it. Mark the beginning and the end of the code block with two equal signs placed alone on the entire line, e.g.

 ==
 ... some code snippet goes here ...
 ==

The following is an example of simple HTML document placed inside the code block.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
   <HEAD>
      <TITLE>My first HTML document</TITLE>
   </HEAD>
   <BODY>
      <P>Hello world!</P>
   </BODY>
</HTML>

Comments

+ Add a Comment

Be the first one to make a comment on this post.