Is it possible to change the font color from a light grey to something more vibrant
是否可以将字体颜色从浅灰色更改为更鲜明的颜色
# GET TODAY'S EVENTS ONLY <- this is the font I want to change
where event_date = CURDATE();
I am currently using MySQL Workbench version 6.0.9.11421 on Windows 7 OS
我目前在Windows 7操作系统上使用MySQL Workbench版本6.0.9.11421
1 个解决方案
#1
3
What you want to change in fact is the colors for syntax highlighting. These colors are stored in an xml file and there's currently no GUI to change them. But you can edit the xml file directly (restart MySQL Workbench to pick up any change). Look for the file code_editor.xml in your MySQL Workbench installation directory.
你想要改变的是语法高亮的颜色。这些颜色存储在xml文件中,目前没有GUI可以更改它们。但是您可以直接编辑xml文件(重新启动MySQL Workbench以获取任何更改)。在MySQL Workbench安装目录中查找文件code_editor.xml。
There are sections for each supported MySQL server like:
每个支持的MySQL服务器都有以下部分:
<?xml version="1.0" encoding="utf-8"?>
<languages>
<language name="SCLEX_MYSQL">
<!-- This is the base language setting. It's usually not directly used, but provides values shared by
more specialized MySQL versions. -->
<!-- Lexer properties -->
<property name="fold" value="1" />
<property name="fold.compact" value="0" />
<property name="fold.comment" value="1" />
...
<style id="1" fore-color="#A0A0A0" /> <!-- SCE_MYSQL_COMMENT -->
<style id="2" fore-color="#A0A0A0" /> <!-- SCE_MYSQL_COMMENTLINE -->
...
</language>
...
</languages>
There are a number style tags each specifying a forground and background color (and styling like bold, italic) for each type of token. This is where you can adjust the colors to whatever you like. Make a copy of the original file in case you need to restore it.
有一些样式标记,每个样式标记为每种类型的标记指定forground和背景颜色(以及粗体,斜体的样式)。您可以在这里根据自己的喜好调整颜色。制作原始文件的副本,以备需要恢复时使用。
#1
3
What you want to change in fact is the colors for syntax highlighting. These colors are stored in an xml file and there's currently no GUI to change them. But you can edit the xml file directly (restart MySQL Workbench to pick up any change). Look for the file code_editor.xml in your MySQL Workbench installation directory.
你想要改变的是语法高亮的颜色。这些颜色存储在xml文件中,目前没有GUI可以更改它们。但是您可以直接编辑xml文件(重新启动MySQL Workbench以获取任何更改)。在MySQL Workbench安装目录中查找文件code_editor.xml。
There are sections for each supported MySQL server like:
每个支持的MySQL服务器都有以下部分:
<?xml version="1.0" encoding="utf-8"?>
<languages>
<language name="SCLEX_MYSQL">
<!-- This is the base language setting. It's usually not directly used, but provides values shared by
more specialized MySQL versions. -->
<!-- Lexer properties -->
<property name="fold" value="1" />
<property name="fold.compact" value="0" />
<property name="fold.comment" value="1" />
...
<style id="1" fore-color="#A0A0A0" /> <!-- SCE_MYSQL_COMMENT -->
<style id="2" fore-color="#A0A0A0" /> <!-- SCE_MYSQL_COMMENTLINE -->
...
</language>
...
</languages>
There are a number style tags each specifying a forground and background color (and styling like bold, italic) for each type of token. This is where you can adjust the colors to whatever you like. Make a copy of the original file in case you need to restore it.
有一些样式标记,每个样式标记为每种类型的标记指定forground和背景颜色(以及粗体,斜体的样式)。您可以在这里根据自己的喜好调整颜色。制作原始文件的副本,以备需要恢复时使用。