PDA

View Full Version : Hack for alternate text formatting? TWiki or UBB style?


12-31-2000, 10:51 PM
Anyone aware of any hacks to allow an alternate method for text formatting (in addition or instead of vB Codes)?

There are some who favor TWiki's syntax and I'd like to be able to allow that in our vB.

Does this sound like a worthwhile hack? Simple or tough?

If simple, any coding ideas?

Thanks...

01-01-2001, 12:01 AM
No hack needed.. You can create custom BBCodes in the Control Panel. Just type in what you want to use and what it should be replaced with.

01-01-2001, 07:17 PM
Being unfamiliar with vB's Control Panel (haven't installed vB yet, just researching), I'm not aware of how it works.

When you say "Just type in what you want to use and what it should be replaced with" do you mean replacing one tag with another? As in, [bold] = [dark]?

This would most probably not work for TWiki style text formatting... as shown here: http://micc.vuse.vanderbilt.edu/twiki/bin/view/Main/TextFormattingRules

any further ideas?

thanks...

01-01-2001, 08:45 PM
he means replacing tags that he created (for example big text,medium text) with html tags.

01-01-2001, 09:18 PM
Ah, so there is no way to do text formatting without using [] tags? For instance, here are some of TWiki's formatting rules:

CapitalizedWordsStickedTogether? will produce a link automatically.
Blank lines will create new paragraphs.
Words get bold by enclosing them in * asterisks
Words get italic by enclosing them in _ underscores
Words get bold italic by enclosing them in __ double-underscores
Words get shown in fixed font by enclosing them in = equal signs

What would it take to hack this type of functionality into vB? Hacking the parse engine? Coding a new one?