====== colortag Plugin ====== ---- plugin ---- description: Adds syntax author : jno email : jno@pisem.net type : syntax lastupdate : 2019-03-26 compatible : 2010-11-07, 2011-04-22, 2011-05-25, 2012-01-25a depends : conflicts : similar : tags : tags downloadurl: https://github.com/jn0/colortag/zipball/master bugtracker : sourcerepo : https://github.com/jn0/colortag donationurl: screenshot_img: https://trello.com/1/cards/5b5f612eb27400430f509709/attachments/5b5f62926adf4e308f57f70b/download/colortag.png ---- ===== Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== [[https://jno.undo.it/dokuwiki/doku.php?id=nk082|Live demo]]. FIXME ==== From this code ==== * brown,black,brown 2×100Ом * brown,black,red 1×1кОм * orange,orange,red 1×3.3кОм * brown,black,orange 2×10кОм * red,magenta,red 1×2.7кОм * yellow,magenta,brown 1×470Ом ==== one may get this picture ==== {{https://trello.com/1/cards/5b5f612eb27400430f509709/attachments/5b5f62926adf4e308f57f70b/download/colortag.png?recache|the render}} ===== Syntax ===== ''<**colortag**[//attributes//]>//TAG//[,//TAG//,%%...%%]'' * **//TAG//** is either a //color//, or //color//'':''//char//, or //color//'':''//char//'':''//color// * **//color//** can be given (as for any HTML color field) by: * **black** --- name * **#1A2B3C** --- 6-digit hex * **#1AF** --- 3-digit hex * the last //color//, if any, is the //foreground// one * **//char//** is any //good// char to show (say, ''•'') * //attributes// are now unused. ===== Configuration and Settings ===== * One may edit **style.css** file in the plugin's directory to customize the render.\\ Actually, only the **table.colortag** specs (and below) are in use. ===== Development ===== === Change Log === * **2012-05-18** * //color//'':''//char// and //color//'':''//char//'':''//color// forms added: * ''green:•'' * ''green:•:lime'' * **2011-03-25** * verification of //color// value has been added * **2011-03-14** * Initial release === Known Bugs and Issues === * No verification is done on the //color// value. This may lead to code injection. === ToDo/Wish List === * make use of //attributes// to set color of the border lines. * filter the //color// value to prevent abuse. * tune up the ''style.css'' to reduce the vertical size of the resulting boxen. * implement (via //attributes//?) an automated way of mapping some device values to respective color codes (resistors, diodes, etc).\\ Something like ''''. ===== FAQ ===== * //[none]// ===== Discussion ===== * //none//