restrict highlight in current page area

This should fix #588.
This should also fix #589.

Highlight in multiple pages is too complicated and requires large
code refactoring and will not be considered for now.