问题描述
我尝试同时使用 Python3/PythonImproved .tmLanguage 语法,但出于某种原因,这两种语法都没有.那些实际上应该与大多数编辑器中的变量颜色相同吗?
I tried using both Python3/PythonImproved .tmLanguage syntaxes, but neither does this for some reason. Are those actually supposed to be the same color as variables in most editors?
这是一些随机函数的截图:
Here's a screenshot of some random function:
这是我想要的样子:
总而言之,我只想突出显示所有使用括号调用的内容,例如 function() 或 object.method().
To sum it up I just want everything called with parentheses like function() or an object.method() to be highlighted.
推荐答案
我是 Python 改进的作者.Sublime 的默认 Monokai 主题无法突出显示 PI 中的许多范围(以及许多其他语言 - 它非常简单).我的其他项目之一,Neon Color Scheme,包含 PI 的所有新范围的规则,以及许多其他语言的范围,包括 Package Control 的内置和第三方语言.如果你不喜欢这些颜色,我试着保留 Neon.tmTheme
非常有条理,因此您应该能够根据需要调整规则.如果您有任何疑问或问题,请随时为 Python 改进
或 Neon
.
I'm the author of Python Improved. Sublime's default Monokai theme lacks the ability to highlight many of the scopes in PI (as well as a bunch of other languages - it's quite bare-bones). One of my other projects, the Neon Color Scheme, contains rules for all of PI's new scopes, as well as scopes for a number of other languages, both built-in and third-party from Package Control. If you don't like the colors, I've tried to keep Neon.tmTheme
pretty organized, so you should be able to adapt the rules as you wish. If you have any questions or problems, feel free to submit an issue for Python Improved
or Neon
.
这篇关于如何突出显示对对象方法和用户创建的函数的调用?(崇高文本,蟒蛇)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!