# Preserve Code Formatting

A plugin for WordPress that preserves formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace.

This plugin is available in the WordPress Plugin Directory: https://wordpress.org/plugins/preserve-code-formatting/


## Installation

1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically `/wp-content/plugins/`).
2. Activate the plugin through the 'Plugins' admin menu in WordPress
3. Go to the 'Settings' -> 'Code Formatting' admin settings page (which you can also get to via the Settings link next to the plugin on the Manage Plugins page) and customize the settings.
4. Write a post with code contained within opening and closing `code` tags (using the HTML editor, not the Visual editor).


## Additional Documentation

See [readme.txt](https://github.com/coffee2code/preserve-code-formatting/blob/master/readme.txt) for additional usage information. See [CHANGELOG.md](CHANGELOG.md) for the list of changes for each release.


## Support

Commercial support and custom development are not presently available. You can raise an [issue](https://github.com/coffee2code/preserve-code-formatting/issues) on GitHub or post in the [plugin's support forum on WordPress.org](https://wordpress.org/support/plugin/preserve-code-formatting/).

If the plugin has been of benefit to you, how about [submitting a review](https://wordpress.org/support/plugin/preserve-code-formatting/reviews/) for it in the WordPress Plugin Directory or considerating a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)?


## License

This plugin is free software; you can redistribute it and/or modify it under the terms of the [GNU General Public License](https://www.gnu.org/licenses/gpl-2.0.html) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.