Title: code shortcode
Last modified: August 22, 2016

---

# code shortcode

 *  Resolved [Nikodemsky](https://wordpress.org/support/users/nikodemsky/)
 * (@nikodemsky)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/)
 * So i tried using `[code][/code]` shortcode for the first time and it’s simple
   and nice, but i have problem with xml code, it does not recognize it.
 * For example if i put:
    [code]<someTag>value</someTag>[/code]
 * then output will give only “value”, there’s no problems with code without markers.
   Is it normal?
 * By same time i’m using plugin:
    [https://wordpress.org/plugins/wp-syntax/](https://wordpress.org/plugins/wp-syntax/)–
   i know it’s outdated, but it’s still working(it’s using different tags for code
   placing) and it’s only one plugin, that is simple and does not brake code markers:\
 * [https://wordpress.org/plugins/arconix-shortcodes/](https://wordpress.org/plugins/arconix-shortcodes/)

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

 *  Plugin Author [John Gardner](https://wordpress.org/support/users/jgardner03/)
 * (@jgardner03)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/#post-5501897)
 * Yeah, the `[code]` shortcode was really just something I added because when I'm
   writing docs or blog posts or whatever and I want to wrap a function in the html`
   <code>` tag for special highlighting I'd have to switch to the Text view and 
   manually add the html tags around the function. This became really annoying really
   fast, hence the shortcode. The plugin still outputs the content as filtered by
   WordPress so if `<someTag>` would be wiped away by itself in the editor, this
   particular shortcode won't change that.
 *  Thread Starter [Nikodemsky](https://wordpress.org/support/users/nikodemsky/)
 * (@nikodemsky)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/#post-5502077)
 * Thanks for the answer.
 * btw. is there way to remove that shortcode? Some plugins i was trying had problem
   with style loading(or something like that).
 * No big deal – it works normally, but it’s giving kinda “weird” behaviour on page
   load.
 *  Plugin Author [John Gardner](https://wordpress.org/support/users/jgardner03/)
 * (@jgardner03)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/#post-5502085)
 * Yes there is a way to remove that shortcode. Add the following to your theme’s`
   functions.php` file:
 *     ```
       /**
        * Removes the [code] shortcode from the list of available shortcodes in
        * the Arconix Shortcodes plugin.
        */
       add_filter( 'arconix_shortcodes_list', 'ac_remove_code' );
       function ac_remove_code( $shortcodes ) {
           if ( isset( $shortcodes['code'] ) )
               unset( $shortcodes['code'] );
   
           return $shortcodes;
       }
       ```
   
 *  Thread Starter [Nikodemsky](https://wordpress.org/support/users/nikodemsky/)
 * (@nikodemsky)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/#post-5502089)
 * thanks once again.

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

The topic ‘code shortcode’ is closed to new replies.

 * ![](https://ps.w.org/arconix-shortcodes/assets/icon-256x256.jpg?rev=2951512)
 * [Arconix Shortcodes](https://wordpress.org/plugins/arconix-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/arconix-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/arconix-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/arconix-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/arconix-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/arconix-shortcodes/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Nikodemsky](https://wordpress.org/support/users/nikodemsky/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/code-shortcode/#post-5502089)
 * Status: resolved