Wednesday, October 23, 2013

Doing a LoC count in Visual Studio

I just wanted to know how many lines of Code do I have in my Solution. Here's a nice trick posted by a fellow blogger that uses Regular Expressions. Way to go! Quick and Easy!

Basically, search for the Following Regex in the solution:


Wednesday, October 2, 2013

Using Razor syntax with Javascript

Following approach was done to have the razor syntax in Javascript. Wrapping the javascript <text> with does the job!

<text>"<span style="color: #76768d; font-size: 14px; font-weight: bold;">@Model.title</span>" +</text>

Although the code above looks like Razor syntax placed in HTML, this has been used in Javascript and works perfect!