At line 3 added one line |
|
At line 8 changed 2 lines |
|{{{ |
%%stylename |
|{{{%%stylename |
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 18 removed one line |
!Applying in-line CSS styles |
At line 20 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 23 changed 8 lines |
|{{{ |
%%( font-size: 150%; color: red ) |
... |
%% |
}}}|{{{start styled section with any CSS definitions |
content: normal WikiNotation to be styled |
close styled section |
}}} |
|{{{This is normal text. |
%%(color:red)This 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 30 added 2 lines |
|
|
At line 38 changed 6 lines |
|%%( background-color: #c0c0ff; border: 1px dotted black; padding: 1em; ) |
Inline CSS definitions are supported on wikipages starting with JSPWiki version 2.1.38. For block usage a div tag is rendered, for inline usuage a span tag. |
%%|%%( background-color: #c0c0ff; border: 1px dotted black; padding: 1em; ) |
asdfasdfasdf |
%%|%%( background-color: #c0c0ff; border: 1px dotted black; padding: 1em; ) |
asdfasdfasfdsafd |
%%( background-color: #c0c0ff; border: 1px dotted black; padding: 1em; ) |
Inline CSS definitions are supported on wikipages starting with JSPWiki version 2.1.38. For block usage a div tag is rendered, for inline usage a span tag. |
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}] |