Your welcome, for a full manual, go to http://codemirror.net/doc/manual.html. The difference can get bigger on really long files. Open codemirrro.js and scroll to the end of the document with a different font size than the default one, and check the code again. Isn't the unwrapping causing problems too on very long lines, that could cover several lines when wrapped?