WordPress.org

Ready to get started?Download WordPress

Forums

WP-SynHighlight
[resolved] Remove title block and info link (4 posts)

  1. Galerio
    Member
    Posted 3 years ago #

    Hi,
    how can I remove the block bar with the "Source code" title and the other buttons (info, print and view code)?
    Or, can you add a "copy" button on that bar? It can be more useful.

  2. FractalizeR
    Member
    Plugin Author

    Posted 3 years ago #

    For editing template please check
    \wp-content\plugins\wp-synhighlight\themes\default\block_template.php file.

    The addition of a Copy button is a little bit complicated because modern browsers do not allow direct clipboard manipulation and you ought to use such ways as Flash embedding and others...

  3. Galerio
    Member
    Posted 3 years ago #

    Ok, found, thanks.

    Your plugin is really great, it is the only one that doesn't have conflict with my theme and other plugin, and now that I have removed the Head bar, I have also removed the only one .js that uses.

    How can you make this magic? It's incredible to see a syntax hilighter that doesn't inject any js file in the html!!!

    Really, GREAT!!!!

  4. FractalizeR
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks, I'm flattered ;)

    Magic is php ;) Highlighting is done in PHP, not in JS.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic