本文介绍了原子代码编辑器.为什么我的代码不是彩色的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用 Atom 代码编辑器.在我的上一个项目中,我安装了一些工具来使我的编码更具交互性.

I started using the Atom Code editor recently. During my last project, I installed a couple of tools to make my coding more interactive.

其中一项功能为我的代码添加了颜色,使其更易于阅读.

One of the features added color to my code which makes it easier to read.

然而,我今天开始了一个新项目,代码在深色背景上全是白色.如何为代码着色?

However, I started a new project today and the code is all white on a dark background. How do I color my code?

我附上了两张彩色代码和非彩色代码的屏幕截图,只是为了说明我的意思,但它非常简单.

I have attached two screenshots of the colored code and the non colored code just to illustrate what I mean but its pretty straightforward.

推荐答案

Atom 可能无法立即识别您的代码的语法.检查屏幕的右下角以确保 atom 选择了正确的语言/文件扩展名.如果 atom 没有自动执行,您可以手动选择此项.如果 atom 无法识别您的代码,您可能还需要安装一些新软件包.

Atom might not be recognizing the syntax of your code immediately. Check the bottom right corner of the screen to make sure atom has the correct language/file extension selected. You can manually select this if atom doesn't do it automatically. You might also need to install some new packages if atom isn't recognizing your code.

这篇关于原子代码编辑器.为什么我的代码不是彩色的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 10:31