wiki:ChimeraSrc2html

Version 1 (modified by Darren Weber, 16 years ago) ( diff )

--

Converting Chimera Python Code to HTML

The python source code can be converted to appealing HTML using pygments. For example:

export CHIMERASRC=/data/src/chimera-svn
export MODULE=StructMeasure
cd ${CHIMERASRC}/libs/${MODULE}
for py in *.py; do
    html=$(echo $py | sed s/.py$/.html/)
    pygmentize -f html -O full,style=colorful,linenos=1 -o $html $py
done
Note: See TracWiki for help on using the wiki.