Highlight Source Code

Highlight is a toggle button which toggles between highlighting and non-highlighting of the source code. The source code that is covered is highlighted with a green color and remaining source lines with a red color representing the uncovered source code for the current execution.

Figure 1. Code Highlight

Note: Only the compilable lines are taken into consideration. For example, lines with comments and variable declaration are ignored.