I'm building the documentation page of Xamarin app in Blazor and I've encountered a problem. I'd like to show code snippets on the page using razor page. So far, I don't have that big problem with C# code, for example of App.xaml.cs:
public App()
{
InitializeComponent();
}
For something like that - I don't have any problems. I can correctly style it as <code> tag, with CSS or with MudBlazor (which I'm also using). Also, IDE is not recognizing it as inside-code.
The problem however is when:
a) I'm trying to add XAML code / tags
b) I'm trying to add some C# methods from Xamarin and they include tags, for example:
_container.Resolve<WebService> ...
So the IDE is recognizing <WebService> as something inside Blazor app.
Of course, I was already trying with <code> blocks with no success. Is there any way to make it work? I really need to show those in documentation so I'm a the dead point right now.