Limit QuickView to literal color names in some languages

For #6836.
Limits QuickView to only literal color names in JS (including JSON), PHP and CoffeeScript.
Includes Unit tests and one new test file.
@redmunds `getModeAt` is only called when there is an actual result and it's only called once per line.