title: Visual Studio: Custom code highlighting based on regex
body: <p>As my application supports some paranoid debug level (every data assignment, every step in the code is written to a log destination), my code is littered with logging calls in some methods, e.g.</p>
  
  <pre><code>logger.Log(LogLevel.Debug, 0, "Initializing i18n...");
  Lang.Language = SystemInfo.Language;
  Logger.Log(LogLevel.Debug, 0, "Default system language: " + Lang.Language);
  string[] languageFiles = Directory.GetFiles(ClientEnvironment.LanguagePath);
  Logger.Log(LogLevel.Debug, 0, "Initializing local language files...");
  </code></pre>
  
  <p>As you can see, there are only two "real" code lines. This makes the code somewhat hard to read. I wonder whether I can specify some custom code formatting rule within Visual Studio to let the logging lines appear in a soft gray text color, instead of the default text color. This would lead to an implicit highlighting of the "real" code lines, resulting in a more readable code.</p>
  
  <p>I need something like: </p>
  
  <pre><code>If statement starts with "logger.Log", set foreground color to gray.
  </code></pre>
  
  <p>Do you know any plugins which could archieve such a behaviour?
  Thank you in advance.</p>