My Code Inside [code][/code] Tags Changes When I Edit The Post (e.g: > < Issue)
-
Hi there Happiness Team,
Hope you are happy, too :D I’ve a slightly annoying problem with my codes. I put the codes inside [code language="java"][/code] tags however when I try to edit that post later on, my > signs inside the code are automatically converted to > < signs are converted to < and ” signs are converted to "
Is there a way to prevent this from happening?
Thanks and best regards,
Süleyman Yasir KulaThe blog I need help with is: (visible only to logged in users)
-
Sorry my post (too) is tweaked automatically. Best way is to share a link to a problem similar to mine, only difference is that they use WordPress.org whereas I use WordPress.com: https://wordpress.org/support/topic/plugin-wp-syntax-ltgt-gt-lt-mixed-up
-
Hi there, sorry for the trouble! Could you give me a link to a published post (or let me know the title of the post if it’s a draft) where this happened? That will help me take a closer look.
Also, when you edit the post, do you use the Text editor or the Visual editor (or both)? Thanks!
-
Hi, first of all thank you for your support.
Here is an example post: http://yasirkula.com/2013/09/16/unity-android-ekranda-parmakla-cevrilebilir-direksiyon-ornegi/
Everytime I edit this post, the problem that I mentioned occurs. I use both editors.
Thank you.
-
Thanks for sharing that example! I was able to reproduce the issue you mentioned in the new post editor, and I’ve reported that to our team so they can investigate it.
In the meantime, I was able to edit a post in the WP Admin editor (under Posts > All Posts and clicking the “Edit” link under a post) and didn’t run into any trouble there. Are you also getting this error when you use that editor, or only when you use the new editor?
-
A very nice catch there! You are totally right. This problem does not occur when I use the old editor (WP Admin editor), only when I use the new editor.
Thanks for the help :)
-
Thanks for confirming that! For now I’d recommend using the old editor when you need to edit posts with those [code] tags, and I'll let you know when I get an update from our team about the new editor. :)
- The topic ‘My Code Inside [code][/code] Tags Changes When I Edit The Post (e.g: > < Issue)’ is closed to new replies.