Under Preferences --> Editor/Debugger --> Language, I have found syntax highlighting options for various languages, but Python isn't one of them. Adding a Python file extension to one of them does not solve the problem either (even after ending and restarting a MATLAB session). I guess my issue could be solved if Python had its own Editor/Debugger Language Preferences.
I cannot change the colors in the editor for Python code
6 次查看(过去 30 天)
显示 更早的评论
I'm using R2022a in dark mode, and I need to call a script in Python. Unfortunately the code editor defaults to some colors that are basically illegible (blue too dark for black background), but I can't seem to change them. The only colors I see in MATLAB Colors Preferences clearly do not correspond to what appears in the editor.
Any ideas on how to fix this?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!