The easy Weblog and Wiki Software
[ start | index | login ]
start > btc0burn > CSSFormatMacro

CSSFormatMacro

Created by btc0burn. Last edited by btc0burn, 4 years and 18 days ago. Viewed 268 times. #7
[diff] [history] [edit] [rdf]
labels
attachments
CSSFormatMacro.jar (2804)
Summary
Allows application of CSS style classes to arbitrary SnipSnap/Radeox content.
by Ben Coburn (>>http://silicodon.net/)
Distributed under the LGPL License.
See: >>http://www.opensource.org/licenses/lgpl-license.php

Download
>>CSSFormatMacro.jar (The source is included in the jar.)

Changes
No longer allows quote marks in the CSS class argument. (see javascript)

Usage

  • Add this macro to your SnipSnap installation. See >>http://www.snipsnap.org/ for details.
  • Add custom CSS style classes to your SnipSnap theme. This can simply be done as follows.
  • Edit SnipSnap/themes/<theme-name>/css by adding another file to the CSS imports:
@import url(css/format.css);
  • Create a new Snip as: SnipSnap/themes/<theme-name>/css/format.css
  • Edit format.css to add your own custom CSS classes. For example:
.highlight-yellow { padding: 2px; background: #ff0; }
  • This CSS style class can now be used anywhere in the SnipSnap by calling out this macro as follows:
{format:highlight-yellow}some highlighted text{format}

(Note that this macro uses span tags to accomplish this formatting.)

no comments | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13713 Snips. Installed 6 years and 42 days ago

Logged in Users: (2)
… and 11 Guests.

snipsnap-changed for older changes.

< August 2008 >
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST