Tags:
create new tag
view all tags

Question

Is there a plugin I can install to create boxes around certain text to distinguish it from the rest of the twiki page? I know mediawiki had this feature, which would create a light blue background behind the text enclosed in the box.

An example is on: http://www.mediawiki.org/wiki/Extension:Plexcel Under "Install the extension"

Thank you for your time!

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Suse
Web server: Apache
Perl version: 5.88
Client OS:
Web Browser:
Categories: Plugins

-- BrianMahoney - 24 Jul 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I found a similar feature in the WYSIWYG editor - however I keep running into formatting issues, so this solution is not ideal.

-- BrianMahoney - 24 Jul 2007

To create boxes around something try SnazzyRoundedCornersContrib. Not shure if it's really what you're looking for, though.

Another approach would be to create your own variables and let them do the formatting.

In TWikiPreferences you could define %STARTBOX% and %ENDBOX% as

   * Set STARTBOX = <span style="border:1px solid silver; background-color:#EFEFEF; padding:5px;">

   * Set ENDBOX = </span>
or to whatever the box should look like. You shouldn't run into any formatting issues with this approach.

Example:

type: What does a box look like? Well... %STARTBOX% a box looks like this! wink %ENDBOX%

and you will get: What does a box look like? Well... a box looks like this! wink

Hope that answers your question...

-- CarloSchulz - 25 Jul 2007

Carlo! Thank you so much! I am going to try and attempt modifying the nat edit contrib so that I can incorporate these functions in the editor for my users smile

-- BrianMahoney - 08 Aug 2007

Does this "span style" solution allow to put any text, incl. formatted by <verbatim> ? I tried that but the box was not created around whole text.

-- EmmaLukas - 2012-02-08

Use a styled span tag for text & images within one block (paragraph, bullet, table cell, ...). Use a styled div tag to style blocks of text.

See also "Colored background" section in TWikiPreferences.

-- PeterThoeny - 2012-02-09

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-02-09 - PeterThoeny
 
  • 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.