Added the beginings of the logic to determine the location of selected code.
Added the beginings of the logic to determine the location of selected code.

hafeild/code-annotator,hafeild/code-annotator,hafeild/code-annotator,hafeild/code-annotator