我的大麻知道高级文字编辑的想法,如强调文字、完成编码、自动登革等。
表达我的想法 我想,强调案文正读到整个案文中,然后用关键词+颜色代码定期替换关键词,并再次取代案文。 这看起来是合乎逻辑的,但是,如果你的文件是4 000条线,那么在每一个关键线上都这样做,就会如此低效。 因此,我知道在C#中执行此类事情的想法(任何其他语言也将被罚款,但现在我正在尝试什么)。
我的大麻知道高级文字编辑的想法,如强调文字、完成编码、自动登革等。
表达我的想法 我想,强调案文正读到整个案文中,然后用关键词+颜色代码定期替换关键词,并再次取代案文。 这看起来是合乎逻辑的,但是,如果你的文件是4 000条线,那么在每一个关键线上都这样做,就会如此低效。 因此,我知道在C#中执行此类事情的想法(任何其他语言也将被罚款,但现在我正在尝试什么)。
Syntax highlighting: This comes to mind. I haven t actually tried the example, so I cannot say anything about the performance, but it seems to be the simplest way of getting basic syntax highlighting up and running.
Auto-completion: Given a list of possible keywords (that could be filtered based on context) you could quickly discard anything that doesn t match what the user is currently typing. In most languages, you can safely limit yourself to one "word", since whitespace isn t usually legal in an identifier. For example, if I start typing "li", the auto-completion database can discard anything that doesn t start with the letters l and i (ignoring case). As the user continues to type, more and more options can be discarded until only one -- or at least a few -- remains. Since you re just looking at one word at a time, this would be very fast indeed.
Indentation:
A quick-and-dirty approach that would (kind of) work in C-like languages is to have a counter that you increment once for every { , and decrement once for every } . When you hit enter to start a new line, the indentation level is then counter * indentWidth
, where indentWidth
is a constant number of spaces or tabs to indent by. This suffers from a serious drawback, though -- consider the following:
if(foo)
bar(); // This line should be indented, but how does the computer know?
为了解决这一问题,你可能会看一线,而不是分界。
http://www.finseth.com/craft/rel=“nofollow” 第7章直接涉及重新展示战略的问题。
Is there a Toad type application for Sybase? I can t seem to find a single one! I ve tried using VS 2008 but can t see the sproc source.
I ve just started a job where I m programming in C on a Mac, which is my first experience using a Mac for development. For now I m using Xcode as my editor, then using make/gcc/svn at the command line ...
I got tired of searching and never finding a programming language that fits my needs (and I suppose most good programmers feel somewhat the same way). Anyway, I do have an idea of what I d like for a ...
I looked at Code::Blocks and it certainly looks great for c++ development, I like it s multiplatform capabilities (runs everywhere), but I wanted to get your feedback. Is it good/stable enough to be ...
I know its a bit too early, but I ve been trying out Go (Google s Programming Language) and its kindof annoying to write code in gedit. So, my question: What do you use to experiment with Go?
Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...
Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...
Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...