RichTextEditor for Code Editing

9 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
    Admin
    Hristo avatar
    1470 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: http://docs.telerik.com/devtools/winforms/richtexteditor/features/code-block.

    We also have a feature request for developing a code editor control. The item is logged our feedback portal, here: https://feedback.telerik.com/Project/154/Feedback/Details/112138-add-new-control-syntax-highlighting-editor-that-supports-c-and-intelisense-c. 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.

    Regards,
    Hristo
    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.
  3. Abdul
    Abdul avatar
    27 posts
    Member since:
    Jan 2017

    Posted 05 Jul 2018 Link to this post

    Hi Hristo,

         

  4. Abdul
    Abdul avatar
    27 posts
    Member since:
    Jan 2017

    Posted 05 Jul 2018 Link to this post

    Hi Hristo,

                I am developing an application in which, XML file is loaded to Code Block in RadRichTextEditor.I can't edit directly from Code Block.How Can I achieve this?

    Regards

    ABDUL HAFEEL

  5. Hristo
    Admin
    Hristo avatar
    1470 posts

    Posted 06 Jul 2018 Link to this post

    Hello Abdul,

    The code blocks can be edited only in the Format Code Block dialog. I am also attaching a gif file showing how the dialog can be opened from the ribbon bar of the editor.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  6. Ali
    Ali avatar
    5 posts
    Member since:
    Aug 2018

    Posted 29 Aug 2018 in reply to Hristo Link to this post

    Hi Hristo,

    I am trying to get the editable radrichtexteditor on my winform. when drag the control and dropped on the form it does not show on the form rather in shows in the bottom of the designer screen. and when i run the  application it is not shown on the form. 

    For further detail i am attaching an image.

    Regards:

    Ghaffar Ali

  7. Hristo
    Admin
    Hristo avatar
    1470 posts

    Posted 29 Aug 2018 Link to this post

    Hi Ghaffar,

    It appears that you are missing the Telerik.WinControls.RichTextEditor.dll assembly or the Telerik.WinControls.UI.Design.dll assembly references in your project. Can you please check and if they are missing add them manually. Please also make sure that all of the referenced Telerik WinForms dlls are having the same version, this can be checked in the Properties window in Visual Studio after selecting some referenced assembly.

    On a side note, please note that we try to keep our threads more or less focused on a single topic. In the future, please consider opening a new thread or submitting a ticket for a question not related to the topic already discussed in an existing forum thread.

    Thank you for the understanding. I hope this will help.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  8. Ali
    Ali avatar
    5 posts
    Member since:
    Aug 2018

    Posted 29 Aug 2018 Link to this post

    Hi Hristo,

    Thank you very much for your positive response.

    I'd checked both Telerik.WinControls.RichTextEditor.dll assembly and the Telerik.WinControls.UI.Design.dll assembly are referenced in my application, and also I'd checked that all of the other dll assemblies are having same version. and still i am facing the same problem.

    Is it a version compatibility issue?

    I am using Visual Studio 2010, and telerik control version 2016.1.112.20.

    Best regards:

    Ghaffar Ali

  9. Hristo
    Admin
    Hristo avatar
    1470 posts

    Posted 29 Aug 2018 Link to this post

    Hello Ghaffar,

    The RadRichtTextEditor is compatible with Visual Studio 2010 and the actual VS version does not appear to be related. In order to further investigate this, we would need your project so that we can test it on our end, so please open a support ticket and send it there. Please also record a short video demonstrating what exactly is happening when you drag and drop the control from the toolbox. 

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top