The parser, the highlighter and their utilities come with ooRexx
5.3.0 beta (see Installation). To check that
they work, follow the chapter Introduction of the
book (A First Program), and try the utilities and samples
of the chapter Utilities and Samples (highlight,
elements...).
If you have installed the
package, open a terminal in its directory and run
setenv (. ./setenv.sh on a Unix-like
system).
If you are using the package as part of the net-oo-rexx software
bundle, please follow the installation instructions of that bundle. You
can then choose to work from a terminal session (after running
setenv), or use ooRexxShell, a powerful, Swiss army knife
shell developed by JLF, which is part of the net-oo-rexx distribution;
ooRexxShell includes direct support for the parser.
Change to the samples subdirectory. It
contains sample.html, a file with a Rexx fenced code block,
which uses a style patch to colour the keywords. Run
fencedcode on it:
rexx fencedcode sample.html
You should see the text of the file with the code block replaced by its highlighted HTML:
Sample text
<div class="highlight-rexx-light rx-blockwrap" id="rx1" data-rexx-style-locked>
<style>
#rx1 .rx-kw {color:#aaaaaa; background-color:#ff0000; }
</style>
<pre><code><span id="rx1-1">...<span class="rx-kw">If</span>...</span></code></pre></div>
Last line
You have just seen the Rexx HTML highlighter in action!
You can now browse the
utilities page, where you will find RexxPub (md2html,
md2pdf, md2slides...) and the other programs
of the package.