Thanks Dan.
I actually want to have a tag that is very similar to <code></code>
tag. Only changes that I want to make are the font style and size..
What is the easiest way to do this?

I'm thinking these lines should be changed in the markup.php

MarkUp('pre', 'code', '/&lt;code>(.*?)&lt;\/code>/se', 'BOLTMcode
("$1", "code")');  // <code>

function BOLTMcode($code, $type) {
        global $Token, $pageLink;
//      $code = preg_replace('/\[\(source ([-_a-z\.\=\ ]+)\)\]/e',
'BOLTFsource($1)', $code);
        $code = preg_replace('/~~([0-9]+)~~/e', '$Token[$1]', $code);
        if (substr($code, 0, 1) == "\n") $code = substr($code, 1);
        $code = str_replace(Array(' &#63; ', ' &#58; ', ' &#44; '), Array(' ?
', ' : ', ' , '), $code);
        $code = htmlentities($code, ENT_COMPAT, 'UTF-8');
        $code = str_replace(Array("\n", "&amp;#36;", '  ', "\t"), Array('<br /
>', '&#36;',  '&nbsp;&nbsp;', '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'),
$code);
        if ($type == 'code' || $type == 'preview') return BOLTescape("<div
class='$type'>$code</div>");
        $out = BOLTtemplatemarkup($code, $pageLink);
        return "<div class='code'>" . BOLTescape($code) . "<hr>$out</div>";
        }

Any help would be appreciated.

On Nov 29, 10:40 am, "The Editor" <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 28, 2008 at 4:22 PM, Daisuke <[EMAIL PROTECTED]> wrote:
>
> > Hi there. I would like to make my own markup in boltwire that can be
> > styled in CSS.. how do I go about creating a new markup?
>
> > say..
> > <myNewMarkup></myNewMarkup>
>
> If you look in the top of markups.php (in the boltwire/barn/scripts
> folder), you can see all the current markups available in BoltWire.
> Find one close to what you want and modify it.  It does involve some
> knowledge of  regex patterns however. And if it's a custom function,
> perhaps some php as well. Create a file called config.php and add your
> new rule there.
>
> If you can be more specific about what kind of output you want, there
> may be an existing markup rule you can use, such as
>
> <div class='whatever'>Text</div>
>
> There's also fully styleable spans and paragraphs as well.
>
> Cheers,
> Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to