ENDCOLOR -- end colored text

%STARTSECTION{"varcolor"}%
#Var%color%
---+++ %color% -- start %CALC{"$LOWER(%color%)"}% colored text
   * =%color%= is one of the shortcut macros predefined in DefaultPreferences.  See the section [[DefaultPreferences#RenderingShortcuts][shortcut macros]] in that topic for a complete list of colors.<br/>
   *Example:*
   <pre class="tml">%<nop>%color%% %CALC{"$LOWER(%color%)"}% text %<nop>ENDCOLOR%</pre>
   *Expands to:* %%color%% %CALC{"$LOWER(%color%)"}% text %ENDCOLOR%
   %STARTSECTION{"remember"}%<p></p><blockquote class="foswikiHelp">%X% =%&lt;color&gt;%= text must end with =%<nop>ENDCOLOR%=. If you want to switch from one color to another one you first need to end the active color with =%<nop>ENDCOLOR%=, e.g. write <pre class="tml">%<nop>RED% some text %<nop>ENDCOLOR% %<nop>GREEN% more text %<nop>ENDCOLOR%</pre></blockquote>%ENDSECTION{"remember"}%
*Related:* [[%IF{"'%includingtopic%'='Macros'" then="#"}%VarENDCOLOR][ENDCOLOR]], [[DefaultPreferences#RenderingShortcuts][DefaultPreferences]], StandardColors
<!--%JQREQUIRE{"chili"}%-->%ENDSECTION{"varcolor"}%

This topic: SystemFoswiki > WebHome > ReferenceManual > UserDocumentationCategory > StandardColors > VarENDCOLOR
Topic revision: 20 Sep 2010, ProjectContributor
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback