@@ ===== Custom Div Tags ===== @@ This is a page from the documentation from my site so if it doesnt follow the guideline here I will change it. I have removed the working examples as this server doesnt have this hack. ~- Purpose - The purpose of this is to enable the creation of custom div tags, and maintain the other wikka formating capabilities, and the ability to have a div inside of another div. ~- Syntax - This is a wikka command that is broken into two parts to allow div's inside of div's. ~~i) Opening Tag - This is the more complicated part, as it is one big shortcut. The basic syntax is the following "" "<<[bg_color][fg_color][width][floating]<" "" ~~~- [bg_color] - This is a single letter selecting the background color of the div ~~~- [fg_color] - This is a single letter selecting the font color in the div ~~~- [width] - This is a single number representing the width of the div, 0 = 100%, and all other number representing tenths ~~~- [floating] - This is a single letter representing the float css option, r = right, l = left, n = none. ~~i) Closing Tag - Always the same, no matter what you made for the opening tag. "" "<d<" "" ~~i) The following colors are selectable. For the bg_color and fg_color. (If you wish to add more then ammend the CSS) I selected soft colors so that they would look good in the browser and not detract from the appearance of the page. Also if you want to add more go ahead, and just add to the CSS, folowing the others as an example ~~~- r - Red ~~~- o - Orange ~~~- y - Yellow ~~~- g - Green ~~~- b - Blue ~~~- v - Violet (Purple) ~~~- k - Black ~~~- w - White ~- Examples ~~ "" <<gk6r< Green box with black text Floating to the right covering 60% <d< "" ~~ <<rk5n< Text inside the red would go here <<gk5r< And text inside the green would go here <d< <d< ~- Notes ~~- You need to keep track of all the parts that you open and you need to remember to close each, or you WILL screw up the HTML. ~~- All parts of the opening tag are required. ~~- Yes I know this isnt the most elegant solution but it works very well. ~- The Following Code Changes had to be made for this to work - remember that lines numbers, and filename are according to my system. Also Note that I do not usually code in php, so if my syntax is not according to the wikka standards please tell me and I will correct it. The following code needs to go in /Formatters/wikka.php and needs to be in all the else if places towards the top ~ %%(php;73;/var/www/html/Wikka/Formatters/wikka.php) // Create custom DIV boxes // Syntax = [bgColor][fgColor][width][floating], to close use else if (preg_match("/\<\<....\'); } else if (preg_match("/\'); } %% Latter in Formatters/wikka.php this change needs to be made, it needs to be right above the line that is commented as Wiki Markup ~ %%(php;423;/var/www/html/Wikka/Formatters/wikka.php) "\<\<....\<|\