vuejs/vue-syntax-highlight

Typescript not working in new branch.

skunkworker opened this issue · 4 comments

Right now I am trying to use the typescript syntax highlight inside of a vue component.

By default when the script tag is bare, like <script> or <script type="text/javascript"> this works just fine and properly highlights the javascript.

vue_highlight_js

But when I change this to be <script type="ts"> it goes white and fails to highlight the typescript included.

vue_highlight_ts

Is there some other configuration setting that is somehow interfering with the typescript highlighting?

I haven't tried the typescript support, from what I can see there is some preliminary support. I will take a look this weekend!

I haven't tried the typescript support, from what I can see there is some preliminary support. I will take a look this weekend!

Thanks for taking a look at this, I can help with testing it.

rchl commented

This should work fine with latest ST version.

It also definitely works in #216 (and ST4).