ExtendedWikiStylesCSS1

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Problem

Some of the current methods for underline or bolding text are cumbersome, and still other styles don't exist, such as strike-through, and overline.

Solution

To extend existing WikiStyles to support a larger number of styles, including overline, underline, bold, italic, strike-through, colored text, sub-scripts and super-scripts, blinking text, and any other styles covered by the CSS1 specification.

Author

Special Thanks

Thanks to Pm (Patrick Michaud?, www.pmichaud.com), for creating PmWiki, and for sharing his knowledge and insightfulness which is what made this script possible.

Installation

  1. Create a new directory: /local/scripts.
  2. Save the file extended_styles_css1.php in the new directory you just created.
  3. Add this one line to your config.php file:
include_once("local/scripts/extended_wiki_styles_css1.php");

Download

Documentation

See the example pages (Cookbook.Extended Wiki Styles? ) to see many examples of how to use this add-on. Also visit the W3C website and check their excellent article describing the various CSS1 styles and how they work at: http://www.w3.org/TR/REC-CSS1.

History

  • 0.2 beta release (03/18/04)
    • Added all the style suggestions made in the Development group (Development.ExtendedMarkup?).
    • Updated the documentation (Cookbook.ExtendedWikiStyles)
    • tested with PmWiki versions 0.6.7 - 0.6.9
  • 0.1 beta release (02/29/04)

I installed this and it resulted in an error as soon as I edited config.php I started getting errors saying:

Warning: main(local/scripts/extended_wiki_styles_css1.php): failed to open stream: No such file or directory in /var/www/wiki.it/htdocs/local/config.php on line 63

Warning: main(): Failed opening 'local/scripts/extended_wiki_styles_css1.php' for inclusion (include_path='.:') in /var/www/wiki.it/htdocs/local/config.php on line 63

Warning: Cannot modify header information - headers already sent by (output started at /var/www/wiki.it/htdocs/local/config.php:63) in /var/www/wiki.it/htdocs/pmwiki.php on line 394

When I commented out include_once("local/scripts/extended_wiki_styles_css1.php"); they went away. Is there a fix for this? What did I do wrong?

Thanks -flickerfly

Answer: I figured it out. Don't copy&paste everything from this page. The name of the hack is somewhat inconsistent. I had to remove _wiki from the name given so that it would be pointing to the right file in config.php. -flickerfly pmwiki-2.3.38 -- Last modified by {{flickerfly}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons