简体   繁体   中英

VS Code change syntax highlighting inside the <script> tag

Can I change the syntax recognition inside the tag from javascript to python?

    <script type="text/python">

        def foo():
            return 'Hello!'

    </script>

I use Brython for frontend, and it would be very convenient for me.

Looks like this is a known issue: https://github.com/microsoft/vscode/issues/25920

The bug report is from 3 years ago but still has not been fixed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM