We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

How do you change the formatting in the middle of a word. For example, this is how I would do it with HTML:

"be sure to <b>un</b>check the delete option"

"be sure to uncheck the delete option"

But doing this in wiki syntax leads to:

"be sure to *un*check the delete option"

I have been unable to figure out a way to get it to do this (other than just using HTML, which I would like to avoid).

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- JasonPierce - 21 Apr 2005

Answer

You can't avoid HTML here. Your solution with bold is perfectly valid. Just assure your formattings are done in proper XHTML.

Is there a Wiki Meta-Language out there that provides these kinds of inline formattings? I don't think so. Maybe we should provide an inline formatting example on TextFormattingRules cause this is a much too frequently asked question.

-- FranzJosefSilli - 21 Apr 2005

What you can do, is define your own TWikiVariables in e.g. TWikiPreferences or WebPreferences, enabling you to write e.g. %STARTBOLD%un%ENDBOLD%check.

You'd have to de a * Set STARTBOLD = <b> or the like in the preferences. I can't think of any real reason to do this, but at least this would allow you make a clean shift to <em> or advanced css stuff if you decide to do so, one day smile

-- SteffenPoulsen - 21 Apr 2005

Thanks, but this is really a question for my users. Personally, I'd just bold the whole word and be done with it. But I'm converting documents right now and want to preserve the formatting as much as possible.

These users wouldn't be too keen on the variable workaround, so I'll just tell them they can only bold whole words. Such is life.

Thanks for the response.

-- JasonPierce - 21 Apr 2005

 
Topic revision: r5 - 21 Apr 2005 - 13:18:57 - JasonPierce
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback