<p dir="auto">It would be great if VS Code supported the paradigm of semantic highlighting.<br>
In short, it makes syntax highlighting more useful, by varying the colors of the same syntax-types of different names in a given scope. This makes it easier to catch mistakes and to see the flow of variables (since every variable in a given scope has a unique color, yet based of the same color range).<br>
Here's an in depth explanation of what is is with some examples: <a href="https://medium.com/@evnbr/coding-in-color-3a6db2743a1e#.n2zb9ohw8" rel="nofollow">https://medium.com/@evnbr/coding-in-color-3a6db2743a1e#.n2zb9ohw8</a></p>
<p dir="auto">Example - before:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/0f54ecffce50e1c1e55c15f8481a45b0747e0664c049016b6fea7248b08c80f4/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f313736302f312a4354626b4a75596d304a556348465441676f764173672e706e67"><img src="https://camo.githubusercontent.com/0f54ecffce50e1c1e55c15f8481a45b0747e0664c049016b6fea7248b08c80f4/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f313736302f312a4354626b4a75596d304a556348465441676f764173672e706e67" alt="Before" data-canonical-src="https://cdn-images-1.medium.com/max/1760/1*CTbkJuYm0JUcHFTAgovAsg.png" style="max-width: 100%;"></a></p>
<p dir="auto">Example - after:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9bd32b7338c3485d6083cce699d3a2be1bdc963edf07faa9449363b7c8d4cf2e/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f313736302f312a545653504f594f317a38474f5673337475784e5271412e706e67"><img src="https://camo.githubusercontent.com/9bd32b7338c3485d6083cce699d3a2be1bdc963edf07faa9449363b7c8d4cf2e/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f313736302f312a545653504f594f317a38474f5673337475784e5271412e706e67" alt="After" data-canonical-src="https://cdn-images-1.medium.com/max/1760/1*TVSPOYO1z8GOVs3tuxNRqA.png" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Wosi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Wosi">@Wosi</a> on October 13, 2015 14:22</em></p>
<p dir="auto">I'm looking for a way to implement an advanced source highlighting<br>
where a language service changes the color of words in a file. The result would look similar to the output Visual Studio creates in C# files.<br>
The screenshot shows C# code in Visual Studio. The word "Customer" is highlighted differently based on its context:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3448684/10456067/6b53769e-71bf-11e5-95b3-f2e95348101b.PNG"><img src="https://cloud.githubusercontent.com/assets/3448684/10456067/6b53769e-71bf-11e5-95b3-f2e95348101b.PNG" alt="advancedhighlighting" style="max-width: 100%;"></a></p>
<p dir="auto">To implement highlighting like this it's necassary to let a language service decide about the color of a word after the grammar based highlighter has done its job.<br>
I would like to see an API for this in the future.</p>
<p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#14</em></p>