• Resolved halfloaded

    (@halfloaded)


    I just setup wp-syntax after playing around with iG syntax hiliter. Both plug-ins have been filtering out many common symbols I use in my code: <, >, &. It replaces them with their html equivalent: >, <, &.

    Does anybody know how to fix this type of issue? It happens in both plugins so it seems to be something more related to WordPress 2.3. Or, maybe it is the theme I am using.

    Example can be found at: https://halfloaded.com.

    A

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter halfloaded

    (@halfloaded)

    Okay, it appears the issue is a problem with tinyMCE. When I try to edit the post, it automatically opens it in the WYSIWYG dialog. All the code looks fine. However, when I switch to “code” view, it converts the actual symbols to their actual ascii html values. While in code view, if I change them back to symbols and save the post, it retains the value. It appears the issue is with tinyMCE.

    Has anybody seen this or now how to fix it within tinyMCE?

    halfloaded, I’m glad you found your answer.

    I recommend not using a WYSIWYG editor, but if you find a workaround, please let us know, and I’ll update the FAQ.

    Btw, the WP-Syntax FAQ touches on your original issue. Sorry I didn’t see your first post early enough to point you in the right direction.

    Thread Starter halfloaded

    (@halfloaded)

    I suppose I could have read the FAQ. Thanks for the quick response. I was hoping there was another option to turning off the WYSIWYG editor since a couple plugin’s I use make extensive use of it. Oh well, you can’t win them all. Syntax highlighting is more important to me that the other plugins. Thanks for the work you do for the community.

    halfloaded, For all the people like you who face this problem with WYSIWYG/visual editors like TinyMCE while using syntax higlighting plugins, I wrote a hack which would enable you to write code in WYSIWYG mode and still display it properly. It is written at https://tech.shantanugoel.com/2008/03/23/hack-fixing-the-code-syntax-highlighter-wordpress-plugins-to-work-with-wysiwyg.html

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-syntax filtering greather than, ampersand, less than’ is closed to new replies.