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

Code Syntax Highlight in Source Code Window

5 Answers 126 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stephen Holland-Chang
Top achievements
Rank 1
Stephen Holland-Chang asked on 24 Mar 2010, 06:51 PM
Hi there! The RadEditor is amazing, just want to get that out of the way :) Was wondering if there is a way to get the Format Code Block Preview syntax highlight features enabled for the Source Code window in the editor. We want to make it so when you view the code you can view the syntax highlight and have it format the code properly? is that possible?

thanks

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Mar 2010, 06:24 PM
Hi Stephen,

Thank you for your feature request.

This feature is logged in our ToDo list, but after detailed research and tests in competitors' editors that offer it we decided to no implement it because of the multiple bugs and side effects that this feature introduces.

Instead of code highlighting in HTML mode, we implemented the Format Code Block dialog that you mentioned in your message.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Alexey
Top achievements
Rank 1
answered on 05 Jan 2012, 12:57 PM
Hi Rumen,

>Instead of code highlighting in HTML mode

When this functionality will be implemented in RadEditor? I mean code highlighting in HTML mode.

--
Regards,
Alexey
0
Rumen
Telerik team
answered on 05 Jan 2012, 03:51 PM
Hello Alexey,

After detailed research, we discontinued this feature due to the unwanted side effects that it will introduce. The implementation requires to have an editable iframe in HTML mode instead of a textarea (so that the tags can be highlighted), which means that when the user pastes some formatted content it will be not pasted as HTML as expected but the it will be rendered, which is undesired and will confuse the end users.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Steve
Top achievements
Rank 2
Veteran
answered on 12 Nov 2012, 03:06 PM
Hey Rumen,
  What would the confusing part be...I'm not understanding.  jsbin, jsfiddle, etc etc all use syntax highlighting very elegantly.

Their markup is just a textarea with the CodeMirror plugin working to highlight the text?...why can't we leverage that as well?

Steve
0
Rumen
Telerik team
answered on 14 Nov 2012, 03:46 PM
Hello,

I tested jsbin and I was able to freeze the browser after copying and pasting not so large content. This means that if we implement such a feature in HTML mode of RadEditor it should be used with small content, because in other case the user could lose its content when the browser freezes.

I logged your feature request in our PITS system and depending on the votes we will consider implementing it along with a property for enabling / disabling it. Here you can find the PITS Issue: Public URL.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Stephen Holland-Chang
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Alexey
Top achievements
Rank 1
Steve
Top achievements
Rank 2
Veteran
Share this question
or