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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-04-21 - JasonPierce
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.