Now you can use %%striped-text to put lipstick stripes on your pre-formatted code blocks.
Inspired by Lea Verou's Zebra textContent unavailable! (broken link)https://jspwiki-wiki.apache.org/images/out.png
Usage:
%%add-css [Striped Text] /% %%striped-text <your preformatted blocks to be striped> /%
Example:
/**
* the fibonacci series implemented as an Iterable.
*/
public final class Fibonacci implements Iterable<Integer> {
/** the next and previous members of the series. */
private int a = 1, b = 1;
public Iterator<Integer> iterator() {
return new Iterator<Integer>() {
/** the series is infinite. */
public boolean hasNext() { return true; }
public Integer next() {
int tmp = a;
a += b;
b = tmp;
return a;
}
public void remove() { throw new UnsupportedOperationException(); }
};
}
Category.Add CSS Style