是否有一个IDE在那里,它的结构语法高亮? [英] Is there an IDE out there that does structural syntax highlighting?

查看:133
本文介绍了是否有一个IDE在那里,它的结构语法高亮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

href=\"http://stackoverflow.com/questions/659166/write-c-in-a-graphical-scratch-like-way/659203\">这个问题有关图形化编程环境。我不认为C ++或C#是真正有利于这种环境下,但也许有一些一半。

Somewhat inspired by this question about a graphical programming environment. I don't think that C++ or C# are really conducive to this type of environment, but perhaps there's something halfway there.

这是我使用将使用的IDE地段的语法高亮改变前景(甚至背景)文本关键字,字符串,注释等...

Lot's of IDEs that I've used will use syntax highlighting to change the foreground (or even the background) colour of text for keywords, strings, comments, etc...

颜色是否有集成开发环境,在那里,将突出大句法结构?下面是我在想什么的例子。

Are there IDEs out there that will highlight larger syntactic structures? Here's an example of what I'm thinking of.

(请不要在我的颜色选择不当评论...我不是一个理由平面设计师。)

(Please don't comment on my poor choice of colours... I'm not a graphic designer for a reason.)

虽然它不是一个图形化的拖放和下降的环境下,高亮仍然给出代码结构的整体视图。就个人而言,学习C#经过多年的C ++,我还是搭上自己绊倒的事实,在文件的最后,你通常有一个类和命名空间的结束而结束,因此函数到底是在两个层面(在C ++代码文件,一个功能的结束通常为缩进的顶层)。我帮助自己在那里通过在接近括号内的小评论投掷:

While it's not a graphical drag-and-drop environment, the highlighting would still give an overall view of the structure of the code. Personally, learning C# after years of C++, I still catch myself tripping over the fact that at the end of a file you usually have the end of a class and the end of a namespace, so the end of a function is two-levels in. (In a C++ code file, the end of a function is usually at the top level of indentation). I help myself out there by throwing in little comments at the close brackets:

    } // end class 
} // end namespace

但在我看来,一些自动着色会作出这样完全没有必要的。无论如何,这种情形已经已经完成?奖金,如果它是一个附加到Visual Studio。

But it seems to me that some automatic colouring would make that completely unnecessary. Anyway, has this been done already? Bonus if it's an add-on to Visual Studio.

推荐答案

这是我见过的最接近的事是的 Codekana ,虽然没有背景语法突出它着色的不同的流量控制结构:

The closest thing that I've seen is Codekana, although doesn't have "background syntax-highlighting" it colorizes the different flow-control structures:



  • 红色的for循环

  • 绿色的,如果块

  • 布朗别的块

  • 海蓝宝石为开关块

  • 橄榄异常块

  • 橙色的回归

  • Red for loops
  • Green for if-blocks
  • Brown for else-blocks
  • Aquamarine for switch-blocks
  • Olive for exception blocks
  • Orange for 'return'

这篇关于是否有一个IDE在那里,它的结构语法高亮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆