我不想从头开始创建整个主题。
例如。
在样式标签中,我更改颜色值
.string.quoted.php {颜色:#8b8b8b; }
所做的更改将应用于实际示例代码,因此我可以调整颜色。
现在,我希望保存此更改。
您可以通过您的个人样式表实现这一点,而无需创建或编辑主题。
Application: Open Your Style Sheet。将在 Atom 中打开一个类似于以下内容的文件:
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow {
// Add Your Styles Here
}
Run Code Online (Sandbox Code Playgroud)在atom-text-editor::shadow {(第 13 行)和结束}(第 15行)之间的区域中,添加更改的样式:
.string.quoted.php { color: #8b8b8b; }
Run Code Online (Sandbox Code Playgroud)保存样式表并检查它在编辑器中是否按预期工作,无需重新加载或重新启动编辑器。
注意:如果您
Use Shadow DOM在 Atom 设置中取消选中复选框,通过Ctrl-访问,,那么您需要将样式放在atom-text-editor {(第 7 行)和结束}(第 10 行)之间。尝试在启用 Shadow DOM 的情况下使用 Atom,因为禁用它的选项将在未来版本中消失。
这是一个简短的动画,介绍了我为使其在 Atom 1.8 Beta 中工作所采取的步骤:
| 归档时间: |
|
| 查看次数: |
1439 次 |
| 最近记录: |