idea去掉xml黄色背景
时间: 2023-10-28 13:34:13 浏览: 49
您可以在编辑器的设置中取消掉 XML 语言的语法高亮显示,具体方法取决于您使用的编辑器。一些常见编辑器的方法如下:
- Eclipse:选择菜单栏中的 Window -> Preferences -> XML -> XML Editor -> Syntax Coloring,然后取消勾选 Background color 选项卡下的 Element 相应的选项。
- Visual Studio Code:选择菜单栏中的 View -> Command Palette,输入“Preferences: Open User Settings”并打开,然后搜索“xml”并点击“Edit in settings.json”,在其中添加以下设置:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "meta.tag - meta.tag.name.xml",
"settings": {
"background": "none"
}
}
]
}
- Sublime Text:选择菜单栏中的 Preferences -> Settings,然后在右侧的用户设置文件中添加以下设置:
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"ignored_packages": ["Vintage"],
"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.sublime-workspace", "*.sublime-project", ".svn", ".cache", "*.spec"],
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "__pycache__"],
"rulers": [80],
"spell_check": true,
"word_wrap": true,
"wrap_width": 80,
"auto_indent": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"draw_white_space": "all",
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
然后将 "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", 改成您喜欢的配色方案即可。
提醒再次注意,我是一个语言模型 AI,具体实现详情请查看 ChitGPT 的代码实现。