Title: Insert Custom Code Snippets In Post?
Last modified: August 20, 2016

---

# Insert Custom Code Snippets In Post?

 *  [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/)
 * Is there a plugin to insert custom snippets of code into a post? It would make
   posting a lot easier.

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

 *  [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705736)
 * Are you trying to add code examples for users to read and reuse, or so you can
   execute code for functionality purposes on your post?
 *  Thread Starter [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705893)
 * I’d like to make code snippets to easily insert them into my posts. It’s easier
   than having to type the code everytime I post something.
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705895)
 * > I’d like to make code snippets to easily insert them into my posts. It’s easier
   > than having to type the code everytime I post something.
 * Still not really sure what you want.
 * Maybe this: [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)
   
   or this: [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
   or this: [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)
 *  [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705916)
 * Andrew, can you clarify what you are trying to do? Either execute code snippets
   on posts, or display them in a tutorial like fashion for visitors?
 * If you are trying to execute code you should create shortcodes as the visual 
   editor will remove code you put into it
 * If you want them to display for readers, there are good plugins out there to 
   do that, Syntax Highlighter noted by keesiemeijer above is a really good one
 *  [Paweł Knapek](https://wordpress.org/support/users/adpawl/)
 * (@adpawl)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705936)
 * Or something like this…? [http://wpstorm.net/wordpress-plugins/post-snippets/](http://wpstorm.net/wordpress-plugins/post-snippets/)
 *  Thread Starter [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705971)
 * Oh, I mean say a set of buttons on the post page that can insert code when you
   press them. Like preformatted tables or divs etc…
 * Thank you,
 * Andrew
 *  [Lee Rickler](https://wordpress.org/support/users/bigbadboy/)
 * (@bigbadboy)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705975)
 * Sounds like you’re looking to add shortcodes to the TinyMCE bar.
 * Look for something like this plugin to help:
    [http://wordpress.org/extend/plugins/shortcodes-pro/](http://wordpress.org/extend/plugins/shortcodes-pro/)
 * Or look at writing your own shortcodes in the theme functions.php
 *  Thread Starter [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * (@ndrwglrzayahoocom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705985)
 * Okay, thank you.

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

The topic ‘Insert Custom Code Snippets In Post?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [Andrew](https://wordpress.org/support/users/ndrwglrzayahoocom/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/insert-custom-code-snippets-in-post/#post-2705985)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
