Title: Code gets comment out after publishing post
Last modified: August 21, 2016

---

# Code gets comment out after publishing post

 *  [wpmhweb](https://wordpress.org/support/users/wppit/)
 * (@wppit)
 * [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/)
 * Hello,
 * I am using SyntaxHighlighter Evolved and when I paste PHP, HTML or any other 
   code after saving or publishing the post, the code gets comment out. For example:
 *     ```
       [php]
       <?php if(!is_user_logged_in()) { ?>
             ***Your Code Here***
       <?php } ?>
       [/php]
       ```
   
 * Gets transformed into this:
 *     ```
       [php]<!--?php if(!is_user_logged_in()) { ?-->
             ***Your Code Here***
       <!--?php } ?-->[/php]
       ```
   
 * At first I thought it was the TinyMCE Advanced plugin, but after disabling it
   I still getting the same behavior.
 * There is anything I can do to fix this?
 * Thanks
 * [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/#post-3750866)
 * Try disabling all other plugins and maybe even switching to the default theme.
   This seems like some type of “security” feature that a plugin or maybe your host
   is doing. I can’t think of anything in WordPress core or my plugin that would
   do this.
 *  Thread Starter [wpmhweb](https://wordpress.org/support/users/wppit/)
 * (@wppit)
 * [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/#post-3750868)
 * Hello,
 * Thank you for the answer, I am checking right now, but I also would like to point
   out that I did noticed it only happens when I switch the editor to Text, I save
   the post and then I switch back to the Visual editor.
 * Thanks,
 *  Thread Starter [wpmhweb](https://wordpress.org/support/users/wppit/)
 * (@wppit)
 * [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/#post-3750869)
 * I just disabled all the plugins and I still having the same results. The only
   thing different I noticed was that after disabling all the plugins and refreshing
   the post the code in the “Text” editor transform the “<” to HTML character entities(
   like in the tweet I sent you).
 * Sadly if I copy and paste the code here, WordPress will rewrite it as well. I
   hope you can get the idea. I also sent you a tweet with a screenshot that shows
   how the code looks
 * Should I have to be using the symbols instead?
    Thanks,
 *  Thread Starter [wpmhweb](https://wordpress.org/support/users/wppit/)
 * (@wppit)
 * [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/#post-3750870)
 * I also tried the twenty-twelve theme and I still getting the same problem.
 * Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code gets comment out after publishing post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [programming](https://wordpress.org/support/topic-tag/programming/)

 * 4 replies
 * 2 participants
 * Last reply from: [wpmhweb](https://wordpress.org/support/users/wppit/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/code-gets-comment-out-after-publishing-post/#post-3750870)
 * Status: not resolved