At line 9 changed 2 lines |
|{{{ |
%%stylename |
|{{{%%stylename |
At line 17 removed 16 lines |
|{{{ |
%%stylename |
... |
%% |
}}}|{{{start styled section using class stylename |
content: normal WikiNotation to be styled |
close styled section |
}}} |
|{{{ |
%%(text-align:center) |
!This text is centered. |
%% |
}}} |
|%%(text-align:center) |
!This text is centered. |
%% |
At line 17 added 2 lines |
[%%(font-size:10px;color:red)Applying in-line CSS styles%%] |
!%%(color:red)Applying in-line CSS styles%% |
At line 35 removed one line |
!Applying in-line CSS styles |
At line 37 removed one line |
The notation for in-line CSS drops the ''stylename'' parameter, replacing it with style definitions surrounded by parantheses: |
At line 22 added 2 lines |
The notation for in-line CSS drops the ''stylename'' parameter, replacing it with style definitions surrounded by parentheses: |
|
At line 40 changed 5 lines |
|{{{ |
This is normal text. |
%%(color:red) |
This text is red. |
%% |
|{{{This is normal text. |
%%(color:red)This text is red.%% |
At line 46 changed 2 lines |
}}} |
|This is normal text. %%(color:red;)This inline text is red.%% This is normal text again. |
}}}|This is normal text.\\%%(color:red)This text is red.%% \\This is normal text again. |
At line 42 added 20 lines |
|
%%prettify |
{{{ |
/** A JavaScript function */ |
function test() { |
var a = "abc"; |
} |
}}}/% |
|
It is not possible to assign CSS code to a variable and have the CSS be rendered where it is inserted. For example, the following will not work: |
|
{{{ |
[{SET red='%%(color:red)RED%%'}] |
[{$red}] |
}}} |
|
And to prove it: |
|
[{SET red='%%(color:red)RED%%'}] |
[{$red}] |