Interfacing editor and version control?
-
Hi, I'd like to develop a simple Windows application in which I have a rich text box (on which I have a tight control) and a version management system handling the files I'm editing, so that I dont modify my original text file, and I can come back to a previous version. Like I want to integrate the check in and check out in the editor, but I want to give the editor some features I dont find in standard editors (for my private needs). Is C# the wrong language for this? Like I've invested a lot of time learning it, it would libraries to handle this would be written in C++ but I'd rather avoid the complexities of C++.
-
Hi, I'd like to develop a simple Windows application in which I have a rich text box (on which I have a tight control) and a version management system handling the files I'm editing, so that I dont modify my original text file, and I can come back to a previous version. Like I want to integrate the check in and check out in the editor, but I want to give the editor some features I dont find in standard editors (for my private needs). Is C# the wrong language for this? Like I've invested a lot of time learning it, it would libraries to handle this would be written in C++ but I'd rather avoid the complexities of C++.
Hi, I did my own IDE in C#. It includes a full featured text editor, which is not based on a RichTextBox, instead I use my own data structures and paint everything to a Panel myself. This allows me to implement all the things I want without being hindered by the peculiarities (shortcomings?) of an RTB. An RTB is not very good at handling large files for one. And I have seen many posts struggling with syntax coloring; I do mine inside the Paint handler, just coloring the part that is visible. This works just fine, supporting a whole set of languages. I did not interface to a version management system yet, but that can't be very difficult. Conclusion: I did all this once in Java, later on a repeated and extended it in C#. These are the only languages I would want to do it in right now! :)
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google
-
Hi, I did my own IDE in C#. It includes a full featured text editor, which is not based on a RichTextBox, instead I use my own data structures and paint everything to a Panel myself. This allows me to implement all the things I want without being hindered by the peculiarities (shortcomings?) of an RTB. An RTB is not very good at handling large files for one. And I have seen many posts struggling with syntax coloring; I do mine inside the Paint handler, just coloring the part that is visible. This works just fine, supporting a whole set of languages. I did not interface to a version management system yet, but that can't be very difficult. Conclusion: I did all this once in Java, later on a repeated and extended it in C#. These are the only languages I would want to do it in right now! :)
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google
Yes, I agree about the weakness of the RTB. Actually I saw a built-in editor control that was very nice in TKInter that comes with Python, because it has marks and tags, which I think I need. A mark represents a floating position somewhere in the contents of a text widget. A tag is like, well, a pair of marks under the one name, which defines a range of characters and those characters can be given a font, a color and other nice properties. Now if I could get that in C# I'd be happy. Maybe I should build my application in Python...