Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内置编辑器代码高亮问题 #6496

Open
zhengkunwang223 opened this issue Sep 14, 2024 Discussed in #5560 · 1 comment
Open

内置编辑器代码高亮问题 #6496

zhengkunwang223 opened this issue Sep 14, 2024 Discussed in #5560 · 1 comment
Assignees

Comments

@zhengkunwang223
Copy link
Contributor

Discussed in #5560

Originally posted by genment June 24, 2024

联系方式

No response

1Panel 版本

v1.10.10-lts

问题描述

内置编辑器代码高亮错误地将 /* 识别为注释的开始标记,导致 /* 后面的所有内容都变灰了。

重现步骤

如图所示。

不止这里,只要文件类型不支持 /* ... */ 注释的配置文件,都会出现这个问题,比如 docker、openresty/nginx 的配置文件

期待的正确结果

在配置文件中,/* 不应该被识别为注释标记

相关日志输出

No response

附加信息

image

@wanghe-fit2cloud
Copy link
Member

后续版本持续优化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants