SourceCodeHorizontalLines

Questions answered by this recipe
- I like to put horizontal lines into code to visually separate sections. How can I do this in PMWiki?
Description
This allows you to use dashes to separate pieces of source code in a PMWiki Page. Currently PMWiki converts a series of 4 or more dashes into an HTML
horizontal line. This recipe converts 5 or more dashes into a comment, but exactly 4 dashes will still work for making an HTML
horizontal line.
Code that looks like this:
[table border=1] [row] [!c]animal [!c]food [row] [c]cat [c]catfood [row] []dog []dogfood [row] [r]bird [r]birdfood [tableend]
can look like this:
--------------------- --------------------- [table border=1] --------------------- [row] [!c]animal [!c]food --------------------- [row] [c]cat [c]catfood --------------------- [row] []dog []dogfood --------------------- [row] [r]bird [r]birdfood --------------------- [tableend] --------------------- ---------------------
Installation
Copy SCHLines.phpΔ to your cookbook directory
In your config.php enter:
or in your farmconfig.php enter:
$FarmD
/cookbook/SCHLines.php");
Notes
Release Notes
This program is free software.
You can redistribute it and/or modify it under
the terms of the GNU General Public License as
published by the Free Software Foundation
http://www.fsf.org either version 2 of the
License, or (at your option) any later version.
Copyright 2007
- Version: 1.2 - Markup removes lines instead of making it a comment. Executes only for specific actions.
- Version: 1.1 - Add RecipeInfo
- Version: Initial Release
Comments
See Also
Contributors
GNUZoo
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.