WordPress.org

Ready to get started?Download WordPress

Forums

CodeColorer
Code snippets screwed up when switching between Visual and HTML views (1 post)

  1. Vito Botta
    Member
    Posted 3 years ago #

    Hi! First of all, thanks a lot for this plugin. It's the nicest syntax highlighter I have found and am loving it.

    I only have one issue with CodeColorer at the moment: if I add code snippets in the Visual view (using the TinyMCE advanced button), the HTML produced is weird and many characters are escaped, with the snippet not being displayed correctly.

    If instead I add snippets manually in the HTML view and just save the post, all OK.
    However, if I switch to the Visual view, and then back to the HTML view for example, the snippet's HTML is again screwed up because of escaping etc.

    I have tried with [cc], [cce], [cci] but I haven't managed to find a way of avoiding this issue, other than adding the snippets in the HTML view and trying to avoid the Visual view before publishing the post -otherwise I have to fix the snippet's HTML manually again.

    Any suggestions?
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic