Title: Code button not working properly
Last modified: February 16, 2019

---

# Code button not working properly

 *  Resolved [flizzywp](https://wordpress.org/support/users/flizzywp/)
 * (@flizzywp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/)
 * Hey,
    I don’t know if there’s anything you can do about it, but my code formatting
   button doesn’t work very well. It’s basically all or nothing – either the whole
   post is formatted as code or none at all. I would like to be able to activate
   and deactivate code-formatting for single parts within the text, but it always
   formats the whole post at once. Do you have the same behavior on your end?

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

 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11214516)
 * Please make sure there code is separated with line-breaks. The TinyMCE editor
   recognizes code limits via paragraphs, so if the code is not separated from other
   text properly it’ll include whole code. You can see the same behavior in WordPress
   post classic editor. I hope you’ve not removed paragraph (double line break) 
   function from editor.
 * You can see the original/native wpForo with all functions at wpForo Community:
   
   [https://wpforo.com/community/](https://wpforo.com/community/)
 *  Thread Starter [flizzywp](https://wordpress.org/support/users/flizzywp/)
 * (@flizzywp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11214914)
 * I tested it on your forum and it behaves the same.
    It works if you start with
   normal text and **then ** add code below, but not the other way around. If you
   start with code, there is no way to add unformatted text below because the button
   then removes the code-formatting from the rest as well.
 *  Thread Starter [flizzywp](https://wordpress.org/support/users/flizzywp/)
 * (@flizzywp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11219820)
 * Can you take a look at it on your forum because users should be able to write
   normal text below the code parts.
    I also noticed that this button can’t be toggled
   like the other formatting buttons. It always applies to the whole text.
    -  This reply was modified 7 years, 3 months ago by [flizzywp](https://wordpress.org/support/users/flizzywp/).
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11221031)
 * Hi [@flizzywp](https://wordpress.org/support/users/flizzywp/),
    You should select
   the code text then press on code button. If you want to exit from code area in
   editor you should press **Shift+Enter**. Ore use the source button, open the 
   HTML code and write after the closing tag.
 * This is the WordPress editor working behavior, you can see the same in Dashboard
   > Edit Post screen using the classic editor.
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11221033)
 * For exiting from Blockquote area you just need to do **Double Enter**, or the
   same **Shift+Enter** like in code case.
 *  Thread Starter [flizzywp](https://wordpress.org/support/users/flizzywp/)
 * (@flizzywp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11221643)
 * Thank you! Shift+Enter indeed works, I am just afraid that my users will not 
   figure this out.

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

The topic ‘Code button not working properly’ is closed to new replies.

 * ![](https://ps.w.org/wpforo/assets/icon-256x256.png?rev=2121644)
 * [wpForo Forum](https://wordpress.org/plugins/wpforo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforo/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [flizzywp](https://wordpress.org/support/users/flizzywp/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/code-button-not-working-properly/#post-11221643)
 * Status: resolved