Giter VIP home page Giter VIP logo

Comments (7)

xsro avatar xsro commented on September 12, 2024

是一个简单的说明
vscode的逻辑是先将代码分为不同的token的词,再根据token来高亮

from masm-tasm.

Vincent0706 avatar Vincent0706 commented on September 12, 2024

请问那个token能在哪里查看?我网上查到好像和Settings Sync插件有关。是通过这个插件把设计好token然后应用在自己电脑的VScode上吗?

from masm-tasm.

xsro avatar xsro commented on September 12, 2024

我不是特别熟悉,推荐看一看官方文档,

你说的token和我说的并不是一个东西,那个是用来同步设置的。VSCode代码高亮的过程是

  1. tokenization将文本分成不同的部分,每个部分对应不同的token也叫scope,比如命令MOV插件就给了scope:keyword.control.DataMovement
  2. theming对不同的scope渲染颜色,也就是不同的主题,上面的MOV就匹配了keyword对应的颜色

这个插件里面只提供了上面的1。有一说一,我在assembly.tmLanguage.json里面定义的token匹配规则,可能不是很完善,如果你有更好地方案,欢迎PR,你也可以描述一下你的需求,我看看我能不能淦

from masm-tasm.

Vincent0706 avatar Vincent0706 commented on September 12, 2024

是这样的,我比较喜欢ASM Code Lens的代码配色,本来想试试能不能自己改成那样的配色。刚才我根据你的介绍试了一下,我把ASM Code Lens的相应文件替换过去已经可以实现配色改变了。但对文字的选中时,相应字段框起来和处于某个段中,这个段的名字会加上白底的效果没有变化。这个是怎么改的?

from masm-tasm.

xsro avatar xsro commented on September 12, 2024

试试在设置中增加这个,就是说使用ASM Code len 的语法高亮,和本插件的运行调试功能,我没有增加触发事件,但是我测试是可以使用的

 "files.associations": {
        "*.asm": "asm-collection"
    }

相应字段框起来和处于某个段中,这个段的名字会加上白底的效果没有变化。这个是怎么改的?

这个可以截个图,我没太理解

from masm-tasm.

Vincent0706 avatar Vincent0706 commented on September 12, 2024

上面那段代码我试了一下,好像不太行

我指的效果是从这样:
image

变成这样:
image

from masm-tasm.

xsro avatar xsro commented on September 12, 2024

我建议直接使用ASMLen's 提供的语法支持功能,两者应该可以同时使用。

"files.associations": {
    "*.ASM": "asm-collection"
  },

from masm-tasm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.