Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Markdown code syntax highlighting

I've got a Git repository running in TFS (on premises) and based on Microsoft documentation I should be able to highlight my code using the following syntax:

``` sql
ALTER TABLE dbo.Project
ADD CONSTRAINT PK_Project PRIMARY KEY CLUSTERED (ProjectId);
```

However I end up getting this: enter image description here

Do I have to install some sort of extension or enable something in settings in order to have proper code highlighting?

Version 16.122.27102.1

like image 451
Evaldas Buinauskas Avatar asked Jul 13 '26 09:07

Evaldas Buinauskas


1 Answers

I tested the Code highlighting on my side with the sql syntax string you mentiond above and it works as expected.

If you mean use the Markdown in repository (Code) or wiki or dashboard, then you don't need any other extensions, it's built-in feature.

But note that code will not be highlighted with the syntax in Dashboard, it's the expected behavior.

In Git repository or wiki, the Code highlighting works as expected.

If you want enable Markdown in work items, then you can install the Markdown extension here.

Markdown is a custom work item form control, that allows you to edit the rich text fields on your work items with a Markdown enabled editor.


UPDATE:

For now in repository it's only supported on VSTS. Not supported yet on premises TFS. But in wiki both are supported.

enter image description here

like image 87
Andy Li-MSFT Avatar answered Jul 15 '26 05:07

Andy Li-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!