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

自定义代码编辑器的字体 #176

Open
Kolandaina opened this issue Aug 28, 2024 · 2 comments
Open

自定义代码编辑器的字体 #176

Kolandaina opened this issue Aug 28, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Kolandaina
Copy link

题目页的编辑器的字体感觉看起来应该是consolas,这个字体有点丑,希望可以增加自定义字体,或者变成Fria Code。

@beijixiaohu beijixiaohu changed the title 修改字体和主题 自定义代码编辑器的字体 Aug 29, 2024
@beijixiaohu beijixiaohu self-assigned this Aug 29, 2024
@beijixiaohu beijixiaohu added the enhancement New feature or request label Aug 29, 2024
@Kolandaina
Copy link
Author

@beijixiaohu 能否再增加自定义主题,例如monokai,one dark这样深受大众喜欢的主题,又或者是monaco里面自带的一些其他主题

@beijixiaohu
Copy link
Owner

@beijixiaohu 能否再增加自定义主题,例如monokai,one dark这样深受大众喜欢的主题,又或者是monaco里面自带的一些其他主题

这个我也想过,当时也研究了,monoco 只自带有三个主题,黑色、白色、高对比度,而 vsc 上的主题是不能在monaco中直接使用的,因为vsc的语法高亮是c写的,想要实现是比较复杂的,所以就没弄了

网上有一些这方面的帖子:

https://segmentfault.com/a/1190000040746839

https://ubug.io/blog/workpad-part-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants