Tags:
create new tag
view all tags

SID-00315: verbatim doesn't work from wiki variables

Status: Answered Answered TWiki version: Perl version:
Category: CategoryEditing Server OS: Last update: 14 years ago

I tried to pack a large command into a wiki variable, for later reusing. This seems to work okay, unless the command contains <verbatim>.

Example: I define

Set BEGINCODE=<verbatim style="color:#111166; padding-left:2em;">
Set ENDCODE = </verbatim>

When I use the said definitions as follows:

%BEGINCODE%
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
</Application>
%ENDCODE%

-- the resulting html includes <verbatim> tag (which is unknown to browsers). Is there some better way to define abbreviations for commands containing <verbatim>?

TWiki version is "02 Sep 2004 $Rev: 1742 $"

-- VladislavDuma - 2009-05-14

Discussion and Answer

I can't see why it isn't working for you: see Support.SID-00297 for a working example that you can cut & paste from.

-- SeanCMorgan - 2009-05-14

Isn't my TWiki too old? %WIKIVERSION% at my side expands to "02 Sep 2004 $Rev: 1742 $", which doesn't look like 4.x.y.

-- VladislavDuma - 2009-05-15

And yes, your example is exactly what I need, thanks a lot! At least I know that I am doing nothing wrong.

-- VladislavDuma - 2009-05-15

Yes, you need to upgrade to use this functionality.

-- PeterThoeny - 2009-05-15

      Change status to:
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.
SupportForm
Status Answered
Title verbatim doesn't work from wiki variables
SupportCategory CategoryEditing
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2009-05-15 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.