RichTextEditor for Code Editing

2 posts, 0 answers
  1. Tony
    Tony avatar
    1 posts
    Member since:
    Feb 2011

    Posted 27 Feb 2017 Link to this post

    Hey there! I'm just doing a bit of scouting at the moment for a new desktop app we're looking to write -- probably a WinForms C# app. This app will need as one of its features to be able to edit XML and CSharp code snippets.

    Since RichTextEditor is already in our toolbox of toys -- but I haven't worked with it previously -- I was wondering, is there any way to make it behave as close as possible to a Visual Studio style code edit window?

    I like the look of the code blocks ("InsertCodeBlock()" function) in RTE but those appear to be read-only. Ideally I'd want the entire edit window to look like the code block (syntax highlighting for the desired language) but not do any of the RTF type things (bolding, italics, etc.)

    Just thought I'd pick the communities thoughts to see if this was even feasible before sinking too much time going down a dead end. Thanks!

     - Tony

  2. Hristo
    Hristo avatar
    1189 posts

    Posted 28 Feb 2017 Link to this post

    Hi Tony,

    Thank you for writing.

    RadRichTextEditor provides functionality for editing the imported code snippets. However, this cannot be performed dynamically and one needs to use the context menu and the Format Code Block dialog:

    We also have a feature request for developing a code editor control. The item is logged our feedback portal, here: I have also added a vote for the item on your behalf.

    I hope this information is useful. Should you have further questions please do not hesitate to write back.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top