SID-01903: Code turns into icon
| Status: |
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 "%".
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
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.