mysql注释换颜色_在MySQL Workbench查询中更改注释字体颜色

bd96500e110b49cbb3cd949968f18be7.png

Is it possible to change the font color from a light grey to something more vibrant

Lou7m.gif

# GET TODAY'S EVENTS ONLY

where event_date = CURDATE();

I am currently using MySQL Workbench version 6.0.9.11421 on Windows 7 OS

解决方案

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.

There are sections for each supported MySQL server like:

...

...

...

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.


版权声明:本文为weixin_31889665原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。