原子代码编辑器.为什么我的代码没有颜色? [英] Atom Code Editor. Why is my code not in color?

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

问题描述

您好,我最近开始使用Atom代码编辑器.在上一个项目中,我安装了一些工具来使我的编码更具交互性.我猜这些功能之一为我的代码增添了色彩,使其更易于阅读. 但是,我今天开始了一个新项目,并且代码在深色背景上都是白色的.如何为代码着色?我附上了彩色代码和非彩色代码的两个屏幕截图,目的只是为了说明我的意思,但是非常简单. 预先感谢!

Hi I started using Atom Code editor recently. During my last project, I installed a couple of tools to make my coding more interactive. I guess 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. Thanks in advance!

推荐答案

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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆