最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typst - Is it possible to define custom "notIn" options for autoClosingPairs in the `language-configuration.js

programmeradmin1浏览0评论

So I'm writing in the Typst language and I modified the language-configuration.json file of the language server extension and added the _ and * characters to the autoclosing pairs for italics and bold text respectively. But I don't want it to enter into effect when I'm typing in equation mode (inside two $ symbols, not necessarly on the same line).

I read through the vscode extension API's section on language-configuration.json and I found the behaviour that I was looking for through the notIn option to add to each pair type. The problem is the only two options available are comment or string (as far as I could tell).

How can I add a definition for "equation", that being text between two $ symbols, so that vscode can recognize it?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论