1. What about styles within the HTML page <style> tag? Do I get the same features there (suppose not)?
2. Maybe a bit off topic: What about Razor code within HTML page <style> tag? In VS 2010 that breaks the intellisense for the CSS styles. Would be nice if it didn't. Example from .cshtml file:
Huckepucke
Member
8 Points
6 Posts
CSS editor features within <style> tag? + Razor code breaks intellisense
Oct 13, 2011 09:22 AM|LINK
I just read New CSS editor features in Visual Studio 11 Developer Preview and have a couple of questions:
1. What about styles within the HTML page <style> tag? Do I get the same features there (suppose not)?
2. Maybe a bit off topic: What about Razor code within HTML page <style> tag? In VS 2010 that breaks the intellisense for the CSS styles. Would be nice if it didn't. Example from .cshtml file:
...
<style>
p { margin-top: 12px; }
div { border: @(someintegervariable * 3)px; }
span { padding-left: 20px; }
</style>
...
This will work, but I won't get intellisense on the styles.
Intellisense css RAZOR editor cshtml
madskristens...
Member
108 Points
14 Posts
Re: CSS editor features within <style> tag? + Razor code breaks intellisense
Jan 19, 2012 08:21 PM|LINK
1. Yes, you get the same features inside a <style> tag as you do in the editor.
2. Mixing Razor/C# in either a style or javascript block is still not supported in VS11, but we hope to change this in the future