Code Syntax Highlight in Source Code Window

6 posts, 0 answers
  1. Stephen Holland-Chang
    Stephen Holland-Chang avatar
    4 posts
    Member since:
    Mar 2010

    Posted 24 Mar 2010 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alexey
    Alexey avatar
    8 posts
    Member since:
    Jun 2011

    Posted 05 Jan 2012 Link to this post

    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
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 05 Jan 2012 Link to this post

    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
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 12 Nov 2012 Link to this post

    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
  7. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 14 Nov 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017