Difference between @: and <text> in Razor

anemaria20 picture anemaria20 · May 20, 2016 · Viewed 12.6k times · Source

What's the difference between these 2 in Razor? I find that I can accomplish the same, whether I use @: or <text>.

Answer

vcsjones picture vcsjones · May 20, 2016

Scott Guthrie wrote about both on his blog. His answer basically boils down to <text> supports multiple lines, while @: is meant to be a more compact form for a single line.