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

Next revision
Previous revision
Both sides next revision
plugin:copy2clipboard [2021-05-13 10:16]
schplurtz created
plugin:copy2clipboard [2021-08-28 16:19] (current)
schplurtz [Description] barre une affirmation fausse
Line 5: Line 5:
 author     : Schplurtz le Déboulonné author     : Schplurtz le Déboulonné
 email      : Schplurtz-AT-Laposte•net email      : Schplurtz-AT-Laposte•net
-type       : javascript +type       : Action 
-lastupdate : 2021-05-13+lastupdate : 2021-07-26
 compatible : elenor of tsort, frusterick manners, greebo, hogfather compatible : elenor of tsort, frusterick manners, greebo, hogfather
 depends    : depends    :
Line 18: Line 18:
 donationurl: donationurl:
  
-screenshot_img : https://raw.github.com/schplurtz/dokuwiki-plugin-copy2clipboard/screenshot.png+screenshot_img : https://raw.github.com/schplurtz/dokuwiki-plugin-copy2clipboard/master/screenshot.png
 ---- ----
  
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.1620893779.txt.gz · Last modified: 2021-05-13 10:16 by schplurtz