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
--
BrianMahoney - 24 Jul 2007
Answer
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!

%ENDBOX%
and you will get: What does a box look like? Well...
a box looks like this!
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
--
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