apt-get install highlightPerfect for publishing, integrating source-codes in tex and on websites. I like the following for my codes:
man highlight
highlight --pretty-symbols --inline-css -I -l _FILE_NAME_ --style $ide -V > tmp; firefox tmp &In firefox, one can do "View Page Source" and copy&paste.