문제

Editing MAML file in sandcastle and need to have a value appear as italic, bold, or an identifiable color within code element.

For example the following does not work:

<code language="xml">
 name="<legacyItalic>value</legacyItalic>"
</code>

Is it possible to highlight some code that will be referred to later in descriptive paragraph?

올바른 솔루션이 없습니다

다른 팁

After further research I discovered that you cannot use html markup in code element if you specify a supported language in the language attribute. Color syntax highlighting is used for supported languages. If you specify text as the attribute value, then you can use html markup such as the span element to specify a background color. Of course you then lose color highlighting for the specified language. In my case, code sample is in XML so I don't care as much about the color.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top