This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Sourcecode Tag Adder

Description

This plugin adds a button (icon: S) that adds WordPress’s sourcecode tags to selected text. Just click the button, enter the code language, and you’re done!

You can change the row of your TinyMCE editor that the button appears in in Settings > Src Tag Adder.

Screenshots

  • The button as it appears in the TinyMCE editor.
  • The popup prompt that asks for the code language.

Installation

  1. Upload the directory sourcecode-tag-adder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Visit the settings page in Settings > Src Tag Adder.

FAQ

How do I format the code language name?

You don’t need to. The plugin will remove spaces, and make everything lowercase. However, you must use the most popular version of the language’s name. For example, ‘JavaScript’ will work, but ‘JS’ will not. ‘PHP’ will work, ‘PHP: Hypertext Processor’ will not.

Contributors & Developers

“Sourcecode Tag Adder” is open source software. The following people have contributed to this plugin.

Changelog

1.1

  • Minor changes/improvements in code

1.0

  • No changes. You’re using the first version!