Latest Docfx version v2.70.0 code-snippet color issue #9145
Replies: 2 comments 14 replies
-
It seems If language is not selected properly. How to customize template Example of export default {
configureHljs: (hljs) => {
// Customize [hightlight.js](https://highlightjs.readthedocs.io/en/latest/api.html#configure) options
hljs.configure({ languages: ["xml", "csharp"] })
}
} |
Beta Was this translation helpful? Give feedback.
-
Latest docfx ( Try to explicitly specify following language attribute on doc comments that contains xaml code. When setting language attribute as export default {
configureHljs: function (hljs) {
// Customize [hightlight.js](https://highlightjs.readthedocs.io/en/latest/api.html#configure) options
hljs.registerAliases('xaml', { languageName: 'xml' });
}
} |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
Currently I have been facing an issue(code-snippet color issue and the language detection in code-snippet) while generating a code-snippet in API pages using latest docfx version v2.70.0.
But while using my older docfx version v2.56.1 the code-snippet color is perfect and language detection for code-snippet also works perfectly.
using older version(v2.56.1) output:
using latest version(v2.70.0) output:
Is this the issue or it was deprecated in the latest version(v2.70.0)?
How to achieve the older(v2.56.1) code-snippet color effect using my latest docfx version(v2.70.0) if it was deprecated? Could you please help me to overcome this issue.
Regards,
Kavin
Beta Was this translation helpful? Give feedback.
All reactions