【问题标题】:VS Code change syntax highlighting inside the <script> tag<script> 标签内的 VS Code 更改语法高亮显示
【发布时间】:2020-02-10 17:08:28
【问题描述】:

我可以将标签内的语法识别从javascript更改为python吗?

    <script type="text/python">

        def foo():
            return 'Hello!'

    </script>

我使用 Brython 作为前端,这对我来说非常方便。

【问题讨论】:

    标签: javascript python visual-studio-code brython


    【解决方案1】:

    看起来这是一个已知问题:https://github.com/microsoft/vscode/issues/25920

    错误报告来自 3 年前,但仍未修复。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-09
    • 2022-01-14
    • 2017-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-27
    相关资源
    最近更新 更多