Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Interfacing editor and version control?

Interfacing editor and version control?

Scheduled Pinned Locked Moved C#
csharpc++collaborationquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    feraudy
    wrote on last edited by
    #1

    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++.

    L 1 Reply Last reply
    0
    • F feraudy

      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++.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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


      F 1 Reply Last reply
      0
      • L Luc Pattyn

        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


        F Offline
        F Offline
        feraudy
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups