Put comments in the editor that won't show

By Simon Roemen Simon Roemen


Edit: See Ed Johnson Ed Johnson 's comment below.

Description

So my colleague and I needed this function but we could not find it on wikisyntax. The purpose is to put it in a template in order to warn the writer to read some instructions first.

I know its certainly obvious for the most of you but I thought it could be useful for other noobs like us :)

Code

So we found this solution:

 [[HTML]] <!-- This is a comment. Comments are not displayed in the browser --> [[/HTML]]

However, if you know another way that is more simple or if you think of other functions that could be useful with this one, you are more than welcome!

Have a nice day.


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Simon Roemen

Mail to all moderators - 10 Jun 2015 09:34


Rate this solution

If you think this solution is useful — rate it up!

rating: +4
(account deleted) 05 Jun 2015 12:14

No need for a HTML block. There is wiki syntax for comments. It's in the docs here:

http://www.wikidot.com/doc-wiki-syntax:comments

[!-- this is a comment --]
by (account deleted), 05 Jun 2015 12:14
Simon Roemen Simon Roemen 05 Jun 2015 12:19

Perfect, this is a very useful information. Im new with wikisyntax and the whole wiki thing so I don't always manage ton find the correct info.

Have a nice day!

by Simon Roemen Simon Roemen , 05 Jun 2015 12:19
page revision: 3, last edited: 06 Jun 2021 03:15
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /