Editor

I had a *quick* look through the Tools > Choose Toolbox Items... menu but the list is far too big for me to check out every single item. My question is; is it possible to use the editing component from the IDE in our own applications I want to build a nice script editor for my application with code folding, syntax highlighting, intellisense, etc.


Answer this question

Editor

  • bndar alm3'ror

    I've tried writing my own before to no avail, hence me asking if there's one built-in. If I'm going to have to write such a complex thing myself using the winapi I might as well use C++ because either way I'll be losing the "fun and simplicity" of the C# language.

    Anyway I guess there's no other way around it. Thanks.

  • AlCant

    I could add that myself with an edit event.

  • Moclobe

    code folding , syntax highlighting, maybe done.. but i`m not so sure about the intellisense..


  • XavierMe

    When you want to design simple things, DataBinding and the Base classes can help you. You IDE can even help you more, when you don't do fancy stuff you can create applications without even thinking and write only a few lines of code.

    But, who likes that


  • MusicMagi

    I've been writing a script editor for an IRC client I use and until I decided to swap the richtextbox for something better I've had no trouble. The editor already has plenty of features.

  • ahufsan

    man dont think that c# is peace of cake..


  • MajorCoder

    I don't mind how the colouring is done, even if I have to add my own RTF code at specific places or similar, it's the code folding I'm interested in.

    Basically I want a textbox that is capable of code folding (think of the treeview type bars on the left of the C# IDE in code edit mode) and colouring text.

  • Eric M.

    I he don't want to use GDI+ because of the complexity, he deffently don't wan't to look at the source code of #Develop.


  • Trevin Chow - MSFT

    Anybody else got any ideas

  • Iko

    I suggest you download the source code for SharpDevelop and see how they did it.

    http://www.icsharpcode.net/OpenSource/SD/

  • alextooter

    The language as a whole might not be but this is really the first bit of trouble I've run into for the things I use it for.

  • cyap

    You want to use a Plug-In pattern, or what do you want exactly


  • Stefan Grasmann

    Then you have to play with GDI+, you can draw your own left side and manipulate the text in the RichTextBox whenever something i clicked in your custom drawed left side.

    Take a look at the Miscellaneous C# Controls section of the code project and take a look at the GDI+ tutorial on C# Corner: GDI+ Tutorial for Beginners.


  • Editor