|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
Automatic Variable DeclarationHow about coloring or highlighting a variable at the point it is newly created? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationIs this a stupid question? I thought it would help to avoid inadvertantly creating a new variable when you meant to use an existing one. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationThe is a mailing list about the Boo language, you have to be more specific if you want to talk about IDEs
Which IDE? On Tue, Sep 1, 2009 at 12:09 AM, carlson <jhragland@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationApologies for my ignorance. How does a general purpose IDE know how to color language 'X'? Does it use the language parser or some other language helper? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationDepending on the IDE
There are too many ways to enumerate On Tue, Sep 1, 2009 at 1:22 PM, carlson <jhragland@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationwell, when I was working on Boo IDE Editor (in c#), I used regular expressions to search for functions, methods, properties, etc. and RichTextBox has a nice feature to color it :)
2009/9/1 Ayende Rahien <ayende@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationProcessor Devil, When you worked on the Boo IDE Editor, did you add code that is intentionally hackable? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationcarlson,
This discussion is quite odd. What're you getting at? On Tue, Sep 1, 2009 at 9:22 AM, carlson <jhragland@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationNathan, Processor Devil says this about him(her)self in his profile: "I am skilled in the art of battle programming and now I work on HackFramework." A little googling turns up this: http://groups.google.com/group/battle-programming/web/buffer-overflow-definition where Processor Dev1l says: "well, it is nice you can make app fall, but we want to control the computer on which such application is running..." So, I naturally wondered if he applied his unique skills to the Boo IDE Editor that he worked on. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationwell, the Boo IDE Editor was for my own use so "no". And to be clear about "making application fall", etc, I speak about unmanaged code (or you can say "native code").
2009/9/1 carlson <jhragland@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationcarlson wrote: > Nathan, > > Processor Devil says this about him(her)self in his profile: > "I am skilled in the art of battle programming and now I work on > HackFramework." > > > So, I naturally wondered if he applied his unique skills to the Boo > IDE Editor that he worked on. What kind of question is that? If you don't trust someone to produce software without backdoors; why would you trust his response to your e-mail? A good read on this topic is "Reflections on trusting trust" (by Ken Thompson): http://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thompson.pdf Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationoh jeez... I just said how I solved the syntax highlighting... can this infect your computer???
2009/9/1 Daniel Grunwald <daniel@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declaration@ Daniel, Good point. But, I did learn something. @ Processor Dev1l, "Boo IDE Editor" sounds very official to someone inexperienced. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationwell, I couldn't figure out any nice name for boo ide editor, so I called it simply "Boo IDE Editor", that is all :))
2009/9/1 carlson <jhragland@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declaration> well, I couldn't figure out any nice name for boo ide editor, so I called it > simply "Boo IDE Editor", that is all :)) I was assuming that I would be using the "Boo IDE Editor" somewhere along the way. Given your interests, I was reluctant to use it. Thanks for clearing that up for me. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable Declarationwell, I can't tell if someone had some similar naming idea, but google didn't find me anything for "Boo IDE Editor" query :)...
2009/9/1 carlson <jhragland@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationIn retrospect, I should have just asked, "Will I be using the 'Boo IDE Editor'?" The answer would have been, "No." And, that would have been the end of it. Apologies to all who were disturbed by this thread. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationEverything is ok :)
2009/9/1 carlson <jhragland@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Automatic Variable DeclarationBtw, I have found the code, here is a snippet :)
I don't like the way how I call the method there, I actually wanted to rework that method and add some code snippets to paste, never completed it :)
private void highlight(string[] data, Color color) { foreach (string hilight in data) { Regex r = new Regex(hilight);
foreach (Match m in r.Matches(this.richTextBox1.Text)) { this.richTextBox1.Select(m.Index, m.Length); this.richTextBox1.SelectionColor = color;
this.richTextBox1.DeselectAll(); } } } private void richTextBox1_TextChanged(object sender, EventArgs e)
{ this.toolStripStatusLabel3.Text = this.richTextBox1.Lines.Length.ToString(); this.toolStripStatusLabel5.Text = this.richTextBox1.TextLength.ToString(); string[] hilite_Strings = { "\\\".+\\\"", @"\'.+\'", }; string[] hilite_Functions = {@"\brange\b", @"\bgets\b", @"\bprompt\b"};
string[] hilite_Macros = {@"\bprint\b", @"\bimport\b", @"\bas\b", @"\bin\b"}; string[] hilite_CycCon = {@"\bif\b", @"\belif\b", @"\belse\b", @"\bfor\b", @"\bwhile\b" }; //cycles, conditions
string[] hilite_FceClass = {@"\bdef\b", @"\bclass\b", @"\bconstructor\b", @"\bdestructor\b" }; //function and class declaration string[] hilite_DataTypes = { @"\bstring\b", @"\bint\b", @"\bfloat\b", @"\bdouble\b", @"\bchar\b", @"\bbyte\b", @"\bbool\b", @"\bobject\b"};
string[] hilite_TFD = { @"true", @"false", @"\d"}; //true, false, decimals string[] hilite_Operators = { @"\+", @"\-", @"\*", @"\/", @"\=", @"\,", @"\.", @"\\", @"\:"};
string[] hilite_comments = { @"\#.+\n" }; int here = this.richTextBox1.SelectionStart; this.richTextBox1.SelectAll();
this.richTextBox1.SelectionColor = Color.Black; //HIGHLIGHTING HERE this.highlight(hilite_Strings, Color.MediumVioletRed); this.highlight(hilite_Functions, Color.Red);
this.highlight(hilite_Macros, Color.Brown); this.highlight(hilite_CycCon, Color.Orange); this.highlight(hilite_FceClass, Color.Blue); this.highlight(hilite_DataTypes, Color.Green);
this.highlight(hilite_TFD, Color.Teal); this.highlight(hilite_Operators, Color.Purple); this.highlight(hilite_comments, Color.Gray); this.richTextBox1.SelectionStart = here;
this.richTextBox1.SelectionColor = Color.Black; } 2009/9/1 Processor Devil <processor.dev1l@...> Everything is ok :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |