Plugin Directory

Changeset 2580024


Ignore:
Timestamp:
08/08/2021 07:26:46 PM (4 years ago)
Author:
zeshanb
Message:

tested up to 5.8 and screenshot description when invalid content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-code-pre/tags/1.0.1/readme.txt

    r2037421 r2580024  
    33Tags: code highlight, filter content
    44Requires at least: 4.0
    5 Tested up to: 5.1
     5Tested up to: 5.8
    66Requires PHP: 7.0
    77Stable tag: 1.0.1
     
    1414This 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.
    1515
    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.
     16This 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.
    1717   
    1818To 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.
    1919
    20 For Wordpress versions 5.0 and above, HTML pre tags can be used within html block or, classic block.
     20For 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.
    2121 
    2222=== Installation ===
     
    44441. Code preview on blog post or page
    45452. Typing code in text tab of WordPress Admin area when writing Post.
     463. Convert block to html while editing to make modifications to existing source code display
Note: See TracChangeset for help on using the changeset viewer.