You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As reported by #9145.
When <code> tag is used inside XML doc comment. lang-csharp style is automatically applied.
It seems older version of docfx don't set this style and highlight.js's auto language detection feature is used.
Describe the solution you'd like
Sandcastle support language attribute on <code> element.
If language attribute is set. It can use this value to select language for syntax highlighting.
Is your feature request related to a problem? Please describe.
As reported by #9145.
When
<code>
tag is used inside XML doc comment.lang-csharp
style is automatically applied.It seems older version of docfx don't set this style and
highlight.js
's auto language detection feature is used.Describe the solution you'd like
Sandcastle support language attribute on
<code>
element.If
language
attribute is set. It can use this value to select language for syntax highlighting.Some language (
xaml
) is not natively supported byhightlight.js
So it need mapping to similar language(
xml
).Describe alternatives you've considered
Don't explicitly set
lang-*
styles by default.Instead use
highlight.js
's auto language detection.The text was updated successfully, but these errors were encountered: