8 Replies to “Visual Code Editor 1.2.2: support for code in comments”

  1. Nice job… I’m trying to use special characters. They get mangled switching from visual to html mode. Your plugin seems like it would prevent the special character code from getting mangled. However, it also seems kinda bulky to use just so we can use special characters.

    Here’s a reference to the special characters (which will quickly get mangled I suppose) 🙂


    ‘ʻ’ => ‘okina’,
    ‘Ā’ => ‘A 256’,
    ‘ā’ => ‘a 257’,
    ‘Ē’ => ‘E 274’,
    ‘ē’ => ‘e 275’,
    ‘Ī’ => ‘I 298’,
    ‘ī’ => ‘i 299’,
    ‘Ō’ => ‘O 332’,
    ‘ō’ => ‘o 333’,
    ‘Ū’ => ‘U 362’,
    ‘ū’ => ‘u 363’,

    Many thanks for any insights!

  2. Whoa! All the special characters are displaying as intended! Now if I can just get them to work in my posts… I’m going to try your plugin to see how easy it is to use for our purpose. many thanks!

  3. I am trying to add the code for an audioacrobat audio iframe to a site, and in reading your plugin info, I thought that I should be able to do this simply by adding the block changing the format to preformatted and then adding the code. It is not working on my site. This does allow you to add the code using the Visual view… correct? What am I doing wrong?

  4. @Scott
    I did a test in this post – see above.
    Are you trying to add an iframe to your post (to embed another page), or display the html code for the iframe (like above)?

  5. hello, I found your plugin very usefull thanks for the job!
    You said that you left the door open for other syntax highlighters so I’m trying to get it work with “WP-CodeBox” which I prefer to SyntaxHighlighter but I can’t get it work…
    WP-CodeBox use …, what I should do to get it work in the visual editor? I’ve already tried some combinations but WP-CodeBox do it’s job only if I use the html editor.
    Thanks and sorry for the newbe question.

  6. giuaig :
    hello, I found your plugin very usefull thanks for the job!
    You said that you left the door open for other syntax highlighters so I’m trying to get it work with “WP-CodeBox” which I prefer to SyntaxHighlighter but I can’t get it work…
    WP-CodeBox use …, what I should do to get it work in the visual editor? I’ve already tried some combinations but WP-CodeBox do it’s job only if I use the html editor.
    Thanks and sorry for the newbe question.

    I meant that WP-CodeBox use pre tag like -pre lang=”php” line=”5″…/pre-

  7. @giuaig
    It does not matter which syntax highlighting plugin you use with Visual Code Editor. I did put in provisions for allowing more attributes in PRE tags for that reason.

    However, to use the visual editor in WordPress, you must be prepared to have all of your HTML entities escaped by TinyMCE (the visual editor). Which means your syntax highlighter must be able to use code where html entities are escaped (like syntax highlighter plus does).

    I’ve installed WP-CodeBox and ran a quick test. See here: http://www.webveteran.com/blog/index.php/web-related-software/visual-code-editor/visual-code-editor-with-wp-codebox/
    It doesn’t look good! WP-CodeBox wants unescaped code. Of which, you cannot use in the visual editor – the browser would render those objects in the visual editor (which is really a fancy iframe controlled by javascript).

    Sorry I cannot be more helpful. It’ just an impossibility to have un-escaped code in visual mode.
    – giulio

Comments are closed.