gpt4 book ai didi

MySQL Workbench 编辑器突出显示的文本颜色

转载 作者:可可西里 更新时间:2023-11-01 08:38:55 27 4
gpt4 key购买 nike

我在 Windows 10 上,我无法弄清楚如何在 突出显示文本 时更改 MySQL Workbench 中的文本颜色。

enter image description here

我对 code_editor.xml 文件中的所有其他文本和背景颜色感到满意(我刚刚花了两个小时自定义它以类似于 SQL Server Management Studio 颜色):

<style id= "0" fore-color="#000000" back-color="#E3DDBF" bold="No" />   <!-- SCE_MYSQL_DEFAULT                  -->
<style id= "1" fore-color="#008000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_COMMENT -->
<style id= "2" fore-color="#008000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id= "3" fore-color="#A58E37" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_VARIABLE -->
<style id= "4" fore-color="#A58E37" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id= "5" fore-color="#A58E37" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id= "6" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_NUMBER -->
<style id= "7" fore-color="#0000FF" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id= "8" fore-color="#0000FF" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_KEYWORD -->
<style id= "9" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_DATABASEOBJECT -->
<style id="10" fore-color="#C04000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="11" fore-color="#B9CB89" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_STRING -->
<style id="12" fore-color="#FF0000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="13" fore-color="#FF0000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="14" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="15" fore-color="#C040C0" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="16" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="17" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="18" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_USER1 -->
<style id="19" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_USER2 -->
<style id="20" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- SCE_MYSQL_USER3 -->
<style id="21" fore-color="#000000" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_HIDDENCOMMAND -->
<style id="22" fore-color="#000000" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_PLACEHOLDER -->

<!-- These two are for scintilla globally. -->
<style id="32" fore-color="#000000" back-color="#E3DDBF" bold="No" /> <!-- STYLE_DEFAULT THIS IS THE ONE FOR THE BACKGROUND!!!!! -->
<style id="33" fore-color="#000000" back-color="#DDDDDD" bold="No" /> <!-- STYLE_LINENUMBER -->

<!-- All styles again in their variant in a hidden command (with a 0x40 offset). -->
<style id="65" fore-color="#999999" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_COMMENT -->
<style id="66" fore-color="#999999" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id="67" fore-color="#DDDDDD" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_VARIABLE -->
<style id="68" fore-color="#9B859D" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id="69" fore-color="#9B859D" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id="70" fore-color="#FF8080" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_NUMBER -->
<style id="71" fore-color="#7AAAD7" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id="72" fore-color="#7AAAD7" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_KEYWORD -->
<style id="73" fore-color="#9B859D" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_DATABASEOBJECT -->
<style id="74" fore-color="#DDDDDD" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="75" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_STRING -->
<style id="76" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="77" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="78" fore-color="#FFBB80" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="79" fore-color="#9B859D" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="80" fore-color="#DDDDDD" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="81" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="82" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_USER1 -->
<style id="83" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_USER2 -->
<style id="84" fore-color="#B9CB89" back-color="#707070" bold="No" /> <!-- SCE_MYSQL_USER3 -->
<style id="85" fore-color="#FFBB80" back-color="#909090" bold="No" /> <!-- SCE_MYSQL_HIDDENCOMMAND -->
<style id="86" fore-color="#AAAAAA" back-color="#909090" bold="No" /> <!-- SCE_MYSQL_PLACEHOLDER -->

通过更改 1 个颜色代码、保存、关闭工作台、重新打开工作台、打开连接、查看 SQL/文本文件、评估颜色……在每次更改后,在工作台中进行实验非常繁琐。突出显示该文本时,需要更改哪个样式元素/属性来影响文本颜色?

我很乐意学习或者如何在突出显示时更改文本颜色突出显示颜色本身。只要对比度高且易于阅读,任何一个都可以。注意:当高亮绿色评论时,确实无法阅读文本;对比度不存在。

注意:我已经在 super 用户和 MySQL 论坛上发布了这个问题,但没有收到有用的答案。

最佳答案

解决您的问题的最佳选择是升级到较新的 Workbench 版本(8.0.11 RC 是当前版本),该版本已更改为使用系统的文本选择颜色来选择文本,而不是保留语法突出显示颜色。

关于MySQL Workbench 编辑器突出显示的文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50311047/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com