Search code examples
azure-devopswiki

Does the Visual Studio Team Services (VSTS) wiki support syntax highlighting?


Visual Studio Team Services has a Markdown-based project documentation feature in form of a wiki.

However I do not get the code formatting to work.

It looks like this:

enter image description here

but obviously it should look like this:

enter image description here

Is syntax highlighting not supported in Visual Studio Team Services or am I doing something wrong?


Solution

  • Make sure that you have a used the language identifier in Markdown Syntax as csharp does not seem to be recognized by default.

    Check this document for Syntax guidance for Markdown files, widgets, wikis, and pull request comments.

    Also, you may go through this blog.