Changeset 2580024
- Timestamp:
- 08/08/2021 07:26:46 PM (4 years ago)
- File:
-
- 1 edited
-
wp-code-pre/tags/1.0.1/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-code-pre/tags/1.0.1/readme.txt
r2037421 r2580024 3 3 Tags: code highlight, filter content 4 4 Requires at least: 4.0 5 Tested up to: 5. 15 Tested up to: 5.8 6 6 Requires PHP: 7.0 7 7 Stable tag: 1.0.1 … … 14 14 This simple plugin was created because of security concerns related to using PHP preg_replace directly. With transition to PHP7, it's advised to use preg_replace_callback instead. 15 15 16 This plugin uses built-in supported feature of PHP-"highlight_string". This plugin filters post content for <code><pre> </pre></code> and helps display html and other source code.16 This plugin uses built-in supported feature of PHP-"highlight_string". This plugin filters post content inside custom html block for <pre> </pre> and helps display html and other source code. 17 17 18 18 To display source code in your posts, surround source code with pre tags. Plugin will filter for pre tags and add inline styles that may be modified using your wordpress theme's css stylesheet. 19 19 20 For Wordpress versions 5.0 and above, HTML pre tags can be used within html block or, classic block. 20 For Wordpress versions 5.0 and above, HTML pre tags can be used within html block or, classic block. Use the three dot menu to convert to html when there is a invalid content error while post editing. 21 21 22 22 === Installation === … … 44 44 1. Code preview on blog post or page 45 45 2. Typing code in text tab of WordPress Admin area when writing Post. 46 3. Convert block to html while editing to make modifications to existing source code display
Note: See TracChangeset
for help on using the changeset viewer.