cnobody233

vscode 有没有什么插件实现 TS 文件中字符串中代码段高亮。

  •  
  •   cnobody233 · Sep 24, 2023 · 2525 views
    This topic created in 1150 days ago, the information mentioned may be changed or developed.

    比如以下代码,能够识别单引号 / 双引号 / 反引号中的字符串并实现高亮。

    cosnt test = {
      singleCode: 'const a = 2333; console.log(a, 2333)',
      doubleCode: "const b = 2333; console.log(b, 2333)",
      templateCode: `const c = 2333; console.log(c, 2333)`
    }
    
    export default test
    

    目前没找到很好的插件。想根据 TextMate 重写 TS 的高亮规则,但是又不想影响到其他 TS 文件的高亮规则,只针对某一些文件去做处理。也没有很好的思路。跪求大神!!

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3795 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 03:59 · PVG 11:59 · LAX 19:59 · JFK 22:59
    ♥ Do have faith in what you're doing.