itdiy / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

LINQ keywords are not highlighting #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Just paste this in
<pre class="lang-vb prettyprint"><code><span class="kwd">Dim</span><span 
class="pln"> bestCat </span><span class="kwd">As</span><span class="pln"> 
ArticleCategory<br>bestCat </span><span class="pun">=</span><span class="pln"> 
</span><span class="pun">(</span><span class="pln">From cat </span><span 
class="kwd">In</span><span class="pln"> Categories<br>&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp;Order By cat</span><span class="pun">.</span><span 
class="pln">tempCount Descending</span><span class="pun">,</span><span 
class="pln"> cat</span><span class="pun">.</span><span 
class="pln">Name<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span 
class="kwd">Select</span><span class="pln"> cat</span><span 
class="pun">).</span><span class="pln">First<br></span></code></pre>

The LINQ keywords should highlight as they do in Microsoft Visual Studio.

Original issue reported on code.google.com by TheSealP...@gmail.com on 19 Dec 2011 at 2:02

GoogleCodeExporter commented 9 years ago
Here's the code:

Dim bestCat As ArticleCategory
bestCat = (From cat In Categories
           Order By cat.tempCount Descending, cat.Name
           Select cat).First

The Keywords "From" "Order By" and "Descending" should highlight.

Original comment by TheSealP...@gmail.com on 19 Dec 2011 at 2:03

GoogleCodeExporter commented 9 years ago
How does one recognize that a chunk of VB code is LINQ?

Original comment by mikesamuel@gmail.com on 30 Mar 2012 at 4:59