Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
This is the Mizuho wiki.
Optional source highlighting
Mizuho can use “source-highlight”, a utility for syntax-highlighting source code in your documentation.
Here are the steps to install “source-highlight” on Mac OS X Leopard. If you’re using MacPorts, it should be easy:
port install source-highlight
If you’re not using MacPorts, download source-highlight and try a regulard configure and build:
./configure make sudo make install
If configure fails with this error:
ERROR! Boost::regex library not installed.
./configure --with-libraries=regex make sudo make install
You must also create this symbolic link to enable programs to find boost on your system:
sudo ln -s /usr/local/include/boost-1_37/boost/ /usr/local/include/boost
Now reconfigure “source-highlight” and build it:
./configure --with-boost-regex=boost_regex-xgcc40-mt make sudo make install
You should be done. Check if highlighting works:
echo "puts 'hello world'" | source-highlight -s ruby