More in this section

Forums / General Discussions / What's the best way to blog with code samples?

What's the best way to blog with code samples?

2 posts, 0 answered
  1. Jeff
    Jeff avatar
    11 posts
    Registered:
    30 Jun 2011
    01 Feb 2012
    Link to this post
    Has anyone had any success using the sitefinity blog functionality to blog with code examples that are prettified?  I've encountered a problem where, when I use the blog editor and I switch to HTML view and add a <pre> tag it will truncate anything that follows a < or > character.  It most likely gets confused and thinks it's an HTML tag.  

    I see that the editor I'm using right now has a Format Code Block toolbar button on it. Can this be enabled in sitefinity?  If so, how do I do that?
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    06 Feb 2012
    Link to this post
    Hello Jeff,

     You can easily modify the default toolset included by our content editor globally - we have outlined the steps in details in the following blog post. The post also contains the default toolsFile as an attachment - you can modify it to include the

    Copy Code
    <tool name="FormatCodeBlock" />
    Please do not hesitate to get back to us if you need some additional information.
    Kind regards,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered