vue-syntax-highlight icon indicating copy to clipboard operation
vue-syntax-highlight copied to clipboard

Typescript not working in new branch.

Open skunkworker opened this issue 6 years ago • 4 comments
trafficstars

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?

skunkworker avatar May 18 '19 00:05 skunkworker

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

skyronic avatar May 18 '19 02:05 skyronic

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.

skunkworker avatar May 18 '19 21:05 skunkworker

This should work fine with latest ST version.

rchl avatar Sep 09 '21 20:09 rchl

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

FichteFoll avatar Feb 01 '23 20:02 FichteFoll