DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:copy2clipboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:copy2clipboard [2021-07-03 15:57] – [copy2clipboard Plugin] schplurtzplugin:copy2clipboard [2021-08-28 16:19] – [Description] barre une affirmation fausse schplurtz
Line 6: Line 6:
 email      : Schplurtz-AT-Laposte•net email      : Schplurtz-AT-Laposte•net
 type       : Action type       : Action
-lastupdate : 2021-07-03+lastupdate : 2021-07-26
 compatible : elenor of tsort, frusterick manners, greebo, hogfather compatible : elenor of tsort, frusterick manners, greebo, hogfather
 depends    : depends    :
Line 28: Line 28:
 Once installed, it will automatically add a <<copy to clipboard>> Once installed, it will automatically add a <<copy to clipboard>>
 button to every ''%%<code>%%'' or ''%%<file>%%'' [[:wiki:syntax#Code Blocks|code block]] button to every ''%%<code>%%'' or ''%%<file>%%'' [[:wiki:syntax#Code Blocks|code block]]
-as shown on the screenshot below.+as shown on the screenshot below. Actually, on desktop browser, buttons become visible 
 +only when mouse cursor enters the ''%%<code>%%'' or ''%%<file>%%'' region. On mobile 
 +browsers, the buttons are always visible.
  
 {{https://github.com/schplurtz/dokuwiki-plugin-copy2clipboard/raw/master/screenshot.png}} {{https://github.com/schplurtz/dokuwiki-plugin-copy2clipboard/raw/master/screenshot.png}}
Line 44: Line 46:
   - It correctly copies codes formatted by geshi((This is the library component used by DokuWiki to highlight syntax)). if you encounter the dreaded "Unrecognized character \xC2" error when you copy code to perl or python, manually or with other extensions, then copy2clipboard is the extension you need,   - It correctly copies codes formatted by geshi((This is the library component used by DokuWiki to highlight syntax)). if you encounter the dreaded "Unrecognized character \xC2" error when you copy code to perl or python, manually or with other extensions, then copy2clipboard is the extension you need,
   - It makes sure line endings are adapted to the os the navigator is running on. This eliminates powershell bug [[https://github.com/PowerShell/PSReadLine/issues/496|496]] and [[https://github.com/PowerShell/PowerShell/issues/3816|3816]] where lines are pasted in reverse order.   - It makes sure line endings are adapted to the os the navigator is running on. This eliminates powershell bug [[https://github.com/PowerShell/PSReadLine/issues/496|496]] and [[https://github.com/PowerShell/PowerShell/issues/3816|3816]] where lines are pasted in reverse order.
-  - It has no known bugs, yet.+  - <del>It has no known bugs, yet.</del>((This is the kind of statement that can't stand long...))
  
 ===== Installation ===== ===== Installation =====
plugin/copy2clipboard.txt · Last modified: 2024-03-04 17:42 by schplurtz

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki