Make dapper SQL be syntax colorized

There is already a Visual Studio Add In for doing this. Check it out!

From their site:

This Visual Studio 2010 extension adds basic SQL syntax highlighting (keywords, functions and variables) to string literals.

In addition, you can get the source code and customize it anyway you feel fit to (including adding specific Dapper keywords).


A bit late to the party but this extension did the job for me:

Sql Tools

Supports Visual Studio 2017 and 2019 unlike the one in the currently accepted answer. In contrast it's a very simple extension but it worked well for my Postgres/Dapper project.