PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.3
Code Block Pro – Beautiful Syntax Highlighting v1.27.3
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / razor.sample

razor.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.3, at build/shiki/samples/razor.sample

26 lines 631 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @{
2 string message = "foreignObject example with Scalable Vector Graphics (SVG)";
3 }
4
5 <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
6 <rect x="0" y="0" rx="10" ry="10" width="200" height="200" stroke="black"
7 fill="none" />
8 <foreignObject x="20" y="20" width="160" height="160">
9 <p>@message</p>
10 </foreignObject>
11 </svg>
12
13 <!-- @do while -->
14
15 @{ var i = 0; }
16 @do
17 {
18 var person = people[i];
19 <p>Name: @person.Name</p>
20 <p>Age: @person.Age</p>
21
22 i++;
23 } while (i < people.Length);
24
25 <!-- From https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-7.0 -->
26