WordPress.org

Ready to get started?Download WordPress

Forums

WP SyntaxHighlighter
[resolved] Change Text for Expand Source (4 posts)

  1. D0ctor
    Member
    Posted 2 years ago #

    Does anyone know if it's possible and if so how to change the text for expand source when code is collapsed?

    http://wordpress.org/extend/plugins/wp-syntaxhighlighter/

  2. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    D0ctor san

    If you choose "3.0.83" in Library version,

    1. Just enter "title". When code is collapsed, title will be shown as label.
    or
    2. Edit wp-syntaxhighlighter.php.

    Line 731
    echo " SyntaxHighlighter.config.strings.expandSource = '".__( '+ expand source', 'wp_sh' )."';

    "+ expand source" is shown as label.

    If you choose "2.1.382", you have to edit wp-syntaxhighlighter.php.

    Line 756
    echo " SyntaxHighlighter.config.strings.expandSource = '".__( 'show source', 'wp_sh' )."';

    In next release, I will add option to change label for expand source.

  3. D0ctor
    Member
    Posted 2 years ago #

    Brilliant.

    Thanks very much buddy.

  4. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Ver. 1.5.5 has the new setting option to change label for expand source.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic