This is a migrated thread and some comments may be shown as answers.

RichTextEditor for Code Editing

8 Answers 356 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 2
Tony asked on 27 Feb 2017, 04:46 PM

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

8 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 28 Feb 2017, 10:49 AM
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.
0
Abdul
Top achievements
Rank 1
answered on 05 Jul 2018, 11:50 AM

Hi Hristo,

     

0
Abdul
Top achievements
Rank 1
answered on 05 Jul 2018, 11:55 AM

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

0
Hristo
Telerik team
answered on 06 Jul 2018, 07:58 AM
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.
0
Ali
Top achievements
Rank 2
answered on 29 Aug 2018, 06:51 AM

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

0
Hristo
Telerik team
answered on 29 Aug 2018, 07:42 AM
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.
0
Ali
Top achievements
Rank 2
answered on 29 Aug 2018, 08:28 AM

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

0
Hristo
Telerik team
answered on 29 Aug 2018, 10:36 AM
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.
Tags
RichTextEditor
Asked by
Tony
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Abdul
Top achievements
Rank 1
Ali
Top achievements
Rank 2
Share this question
or