User Tools


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
en:wiki:syntax [2019/08/13 10:26] cbuehleren:wiki:syntax [2023/04/25 10:59] (current) – external edit 127.0.0.1
Line 525: Line 525:
 ~~INFO:syntaxplugins~~ ~~INFO:syntaxplugins~~
  
-====== color Plugin ====== +====== Color Plugin ======
- +
----- plugin ---- +
-description: Opportunity to write colored text in DokuWiki +
-author     : Harald Hanche-Olsen +
-email      : harald.hanche-olsen@ntnu.no +
-type       : Syntax +
-lastupdate : 2018-10-12 +
-compatible : 2009-12-25, 2010-11-07, 2011-05-25, 2012-01-25, 2014-05-05, 2014-09-29d, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Detritus,Elenor Of Tsort, Frusterick Manners, Greebo +
-depends    :  +
-conflicts  :  +
-similar    : fontcolor, emphasis, wrap +
-tags       : typography, highlight, color, text +
- +
-downloadurl: https://github.com/hanche/dokuwiki_color_plugin/archive/2018-10-12.zip +
-sourcerepo : https://github.com/hanche/dokuwiki_color_plugin +
-bugtracker : https://github.com/hanche/dokuwiki_color_plugin/issues +
- +
-screenshot_img: https://folk.ntnu.no/hanche/tmp/dokuwiki_color_plugin.png +
----- +
- +
-===== Installation ===== +
- +
-Please use the [[plugin:extension|extension manager]] to install the plugin, no configuration needed. +
- +
-===== Usage =====+
  
 Place this code sample in your playground: Place this code sample in your playground:
Line 576: Line 551:
 Beware that not all color specifications work on all browsers. Beware that not all color specifications work on all browsers.
 Check [[https://caniuse.com/|Can I Use]] if in doubt. Check [[https://caniuse.com/|Can I Use]] if in doubt.
 +
 +====== Cell Background Plugin ======
 +
 +===== Syntax and Usage =====
 +
 +A background color is introduced by ''@'' and ended by '':''.\\ 
 +You can use all names and color codes from HTML.\\ 
 +If you don't specify a color, yellow is used.\\ 
 +See examples below:
 +
 +===== Examples =====
 +
 +This code :
 +<code>
 +^  Header 1          Header 2  ^  Header 3        ^
 +|  @lightgreen:**Span**         ||                  |
 +|  @#6495ed:Ligne 1 |  Oui        Oui, à valider  |
 +|  Ligne 2          |  Oui        @orange: Oui    |
 +|  @:Ligne 3        |  Oui       | @red:Non         |
 +</code>
 +looks like : \\ 
 +^  Header 1          Header 2  ^  Header 3        ^
 +|  @lightgreen:**Span**         ||                  |
 +|  @#6495ed:Ligne 1 |  Oui        Oui, à valider  |
 +|  Ligne 2          |  Oui        @orange: Oui    |
 +|  @:Ligne 3        |  Oui       | @red:Non         |
 +
 +This one :
 +<code>
 +|  @palegreen:Validé  |  @orange:À valider  |  @red:Non fonctionnel  |
 +</code>
 +looks like : \\ 
 +|  @palegreen:Validé  |  @orange:À valider  |  @red:Non fonctionnel  |
 +
 +
 +
 +
 +===== Features =====
 +  * Uses HTML color codes and names [[http://html-color-codes.info/|HTML Color Code Chart]]
 +  * Works with other table formatting (alignment, bold, ...)