improved performance of showCode with prettify