9

Code blocks on questions tagged with TypeScript should be automatically formatted with TypeScript syntax highlighting. Currently, they are not (at least not always), despite the presence of TypeScript support in the formatting engine (<!-- language: lang-typescript -->) does work).

When added this answer, I had to add the comment to get the formatting to work; however, when I added this answer, I did not.

2
  • On your second answer it's using JavaScript syntax highlighting, because the question is tagged as such. Commented Aug 5, 2014 at 13:11
  • 1
    @Stijn I thought it had to be TypeScript because class, static, private, and IHttpService were all highlighted. Maybe not, though: upon checking, I see the first 3 are keywords or reserved in ECMAScript 6. I don't know why IHttpService got picked up, but if there's a reason for that, then maybe the formatter doesn't support TypeScript after all. Commented Aug 5, 2014 at 18:03

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.