Viewing the h and cpp files for a library

I tried "File - Open" and selected one of the library cpp files, and it threw the error "Bad file selected" and a message that it will only open .ino and .pde files.

KWrite is my favorite.