Comments (7)
这是一个简单的说明
vscode的逻辑是先将代码分为不同的token的词,再根据token来高亮
from masm-tasm.
请问那个token能在哪里查看?我网上查到好像和Settings Sync插件有关。是通过这个插件把设计好token然后应用在自己电脑的VScode上吗?
from masm-tasm.
我不是特别熟悉,推荐看一看官方文档,
你说的token和我说的并不是一个东西,那个是用来同步设置的。VSCode代码高亮的过程是
- tokenization将文本分成不同的部分,每个部分对应不同的token也叫scope,比如命令
MOV
插件就给了scope:keyword.control.DataMovement
- theming对不同的scope渲染颜色,也就是不同的主题,上面的
MOV
就匹配了keyword
对应的颜色
这个插件里面只提供了上面的1。有一说一,我在assembly.tmLanguage.json里面定义的token匹配规则,可能不是很完善,如果你有更好地方案,欢迎PR,你也可以描述一下你的需求,我看看我能不能淦
from masm-tasm.
是这样的,我比较喜欢ASM Code Lens的代码配色,本来想试试能不能自己改成那样的配色。刚才我根据你的介绍试了一下,我把ASM Code Lens的相应文件替换过去已经可以实现配色改变了。但对文字的选中时,相应字段框起来和处于某个段中,这个段的名字会加上白底的效果没有变化。这个是怎么改的?
from masm-tasm.
试试在设置中增加这个,就是说使用ASM Code len 的语法高亮,和本插件的运行调试功能,我没有增加触发事件,但是我测试是可以使用的
"files.associations": {
"*.asm": "asm-collection"
}
相应字段框起来和处于某个段中,这个段的名字会加上白底的效果没有变化。这个是怎么改的?
这个可以截个图,我没太理解
from masm-tasm.
上面那段代码我试了一下,好像不太行
from masm-tasm.
我建议直接使用ASMLen's 提供的语法支持功能,两者应该可以同时使用。
"files.associations": {
"*.ASM": "asm-collection"
},
from masm-tasm.
Related Issues (20)
- Multiple file assembly support
- 插件无法在VSCode Remote下执行启动dosbox模拟器的命令 HOT 3
- Any plan for supporting bare-metal x86 (or x64) development? HOT 2
- How to view the console output in the debug window? HOT 4
- integration with Turbo Debugger (TD) HOT 1
- bug report: Format Document function
- 关于几个bug HOT 2
- Irvine32.inc file not found HOT 1
- 格式化时文件被还原 HOT 4
- Cannot read properties of undefined (reading 'fsPath') HOT 2
- I HOT 2
- Error to execute a command HOT 3
- 代码被格式化为错误的结果 HOT 1
- 未能正确区分ASCII的大小写 HOT 2
- Variable in section .data is initialized to wrong value HOT 1
- 插件中右键无法打开dos环境同时无法运行/调试当前程序 HOT 2
- 能否通过设置来将编译完成的exe文件输出到源asm的目录?
- File not found error
- 关于工作目录的挂载问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from masm-tasm.