简体   繁体   English

将字符串功能添加到 codemirror 定义模式 function

[英]Adding string functionality to codemirror define mode function

I am making a editor for js but with additional keywords and other things.我正在为 js 做一个编辑器,但有额外的关键字和其他东西。 But the only problem is that I am unable to add string functionality to it.但唯一的问题是我无法为其添加字符串功能。

'' and "" don't have any color

Can anyone help谁能帮忙

Check C-Like..检查C-Like..

https://codemirror.net/mode/clike/ it supports all coding languages that looks like C... including Java and C#. https://codemirror.net/mode/clike/ it supports all coding languages that looks like C... including Java and C#.

All of these languages have color for string variables.所有这些语言都有字符串变量的颜色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM