Within a paragraph <p> tag you can use <code> tags to denote a command. When you do this, the text within the code tags will show up highlighted in a monospace font. For example... you must type in sudo port install ruby when installing ruby via MacPorts.
If you use the CSS class .external-link on an <a> tag, then that link will do two things. First it will show a small icon to the right that denotes the link will be opened in a new window. Second, when the page loads the MetaContent javascript class will add a target="blank" to the link so that it opens in a new window. The reason for this is that target attribute is not XHTML compliant.
If you use <pre> tags outside of a paragraph then the it will appear in a code sample box like the first example below showing some shell environment variables. However if you give the tag a command class like <pre class="command"> then the enclosing text will be presented in a similar box that shows that this command is a shell command by displaying a corresponding graphic.
# My PATH Environment Variables export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH" export MANPATH="/opt/local/share/man:$MANPATH" export INFOPATH="/opt/local/share/info:$INFOPATH"
sudo port install ruby
The Meta theme incorporates CSS for Mephisto's implementation of the CodeRay library. To have mephisto use CodeRay to syntax highlight your code, wrap the code with <macro:code lang="ruby">code</macro:code>. The code will look like the example below.
1 2 3 4 5 6 7 |
# Ruby 1.9 introduces BasicObject. # Use Builder's BlankSlate until then. unless defined? BasicObject require 'blankslate' BasicObject = BlankSlate end |
If you want to use a <blockquote> tag, please put a <div> immediately inside of it to get the best formatting.
I believe that the purpose of life is, at least in part, to be happy. Based on this belief, Ruby is designed to make programming not only easy but also fun. It allows you to concentrate on the creative side of programming, with less stress.










