Tags:
create new tag
view all tags

SID-01903: Code turns into icon

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5
Category: CategoryEditing Server OS: CentOS Last update: 12 years ago

I have a piece of code on a page: $(date +%Y%m%d_%H%M%S)

The problem is that "%Y" and "%H" turns into these anoying icons (DONE & HELP). How do I disable/discard/ignore/escape these icons?

I have tried using "!" and "<nop>" but I can't seem to find the right solution.

-- Niklas Storm - 2014-04-09

Discussion and Answer

Two options:

1. Enclose code in <verbatim>...</verbatim> tags

2. Escape variable. For example write %<nop>Y% to escape %Y%.

-- Peter Thoeny - 2014-04-09

Above options are for raw edit mode.

-- Peter Thoeny - 2014-04-09

Awesome! Thanks! I had only tried putting <nop> in front of the "%". wink

To whom it may concern, my code now looks like this: $(date +%<nop>Y%m%d_%<nop>H%<nop>M%S)

-- Niklas Storm - 2014-04-09

      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 Code turns into icon
SupportCategory CategoryEditing
TWiki version 6.0.0
Server OS CentOS
Web server Apache
Perl version 5
Browser & version Firefox 28.0
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-04-09 - NiklasStorm
 
  • 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.