什么是“语义突出显示”? MonoDevelop 中的选项
在“语法突出显示”下,有一个“启用语义突出显示”的选项。这与常规智能感知/自动完成/突出显示有何不同?
Under 'Syntax highlighting' there is an option for 'enable semantic highlighting'. What does that do differently than regular intellisense/autocomplete/highlighting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果没有语义突出显示,MD 仅基于语言规则(如关键字、字符串、数字)进行简单的突出显示。
语义突出显示,顾名思义,分析标记的含义。目前,对于 C#,我认为它仅突出显示代表类型名称的标记。
将来可以进行更广泛的突出显示,例如局部变量。
最后一件事 - 它与智能感知/自动完成功能无关。
Without semantic highlight MD does only simple highlighting, only based on the rules of the language - like keywords, strings, digits.
Semantic highlighting, well, as the name suggests, analyzes the meaning of tokens. At the present time, for C# I think it only highlights tokens that represent a type name.
In the future a wider range of highlighting is possible, for example a local variables.
And the last thing - it is not related to the intellisense/autocomplete feature.
实际上,这看起来像突出显示此处解释的对象和变量类型: http://zwabel.wordpress.com/2009/01/08/c-ide-evolution-from-syntax-highlighting-to-semantic-highlighting/
有关的更多信息那就太好了。
Actually that looks like highlighting the objects and variable types explained here: http://zwabel.wordpress.com/2009/01/08/c-ide-evolution-from-syntax-highlighting-to-semantic-highlighting/
Anymore info on it would be good.