Aptana 模板颜色 - 如何更改定义颜色
我想更改 Aptana 3 中定义变量的颜色,但找不到合适的元素(窗口 - 首选项 - Aptana studio - 主题)。
define ("valid_username","Valid username");
<?php echo valid_username; ?>
我尝试更改常量元素的颜色,但它只影响数字和真/假。
因此,主题部分中的哪个元素负责定义的变量。
I would like to change the color for defined variables in Aptana 3 and I can't find the right element for this (Window - Preferences - Aptana studio - Themes) .
define ("valid_username","Valid username");
<?php echo valid_username; ?>
I tried to change the color for constant element but it only affects numbers and true/false.
So, which element in Themes section is responsibile for defined variables.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 php,我会尝试调整“变量”而不是“常量”的颜色。在示例中:
$erated = "test";
如果您修改了“variable”元素的主题,$erated 的颜色将会改变。
For php, I would try to adjust the color for "variable" instead of "constant". In the example:
$rated = "test";
$rated would have its color changed if you modified the theme for the "variable" element.
echo
之后的valid_username
标记在我们当前的 PHP 支持中没有明确的范围。它返回source.php source.php.embedded.block.html
的范围,这只是 php 块内任何内容的范围。因此,您无法真正将其目标定为不同的颜色。 Textmate 使用
source.php source.php.embedded.block.htmlconstant.other.php
的范围,它允许您通过定位constant
或来为其着色>常量.其他
。这是一个错误,请向我们提交一张票,以修复此代码段范围中的不匹配问题:http://jira.appcelerator.org/secure/CreateIssue!default.jspa
The
valid_username
token afterecho
doesn't have a distinct scope in our current PHP support. It reports back a scope ofsource.php source.php.embedded.block.html
, which is just the scope for anything inside a php block.As a result you can't really target it to be colored differently. Textmate uses a scope of
source.php source.php.embedded.block.html constant.other.php
, which allows you to color it by targetingconstant
, orconstant.other
.This is a bug, please file a ticket for us to fix this mismatch in scopes for this snippet here: http://jira.appcelerator.org/secure/CreateIssue!default.jspa