Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Non-trivial for sure. But much easier with a hex editor than with, say, a standard text editor. No need to guess how many lines some text takes up due to word wrapping; no need to even search for newlines. There's a fixed number of bytes per row, and a fixed row height, so mapping between byte offset, line number, and pixel y-position is just a matter of multiplying and dividing.


Agree. Nothing to argue there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: