Highlight the source sections also on hover

Refactored the addPlaceholder method to avoid code duplication

Change-Id: I0977b4f6dcdaa20be5b5797de55e1c5ffc2768be