
內容簡介
這個外掛讓你可以使用簡短的代碼輕易地將網頁或文章中的內容註解掉。它會使用 HTML 註解語法,讓內容在瀏覽器的「檢視原始碼」視窗中仍然可見。
只需要在你要註解的文字前面放上開始代碼 [comment],在結尾處放上結束代碼 [/comment]。
如果你希望完全隱藏內容(在瀏覽器原始碼中不可見),可以將可選的 type 屬性設為「hidden」。預設行為是將 type 屬性設為「html」,但並非必要。
[comment]這段文字將被以 HTML 註解的形式隱藏起來。[/comment]
[comment type="hidden"]這段文字甚至不會被傳送到瀏覽器中。[/comment]
外掛標籤
開發者團隊
原文外掛簡介
Easily comment out page and post content using a shortcode. Content is commented out using HTML comment syntax, keeping the content available in the “View Source” window of your web browser.
Simply place the opening shortcode [comment] at the beginning of the text you wish to comment out, and the closing shortcode [/comment] at the end.
If you wish to hide the content entirely from view (so that it is not visible in the browser source), set the optional type attribute to “hidden”. Setting the type attribute to “html” will produce the default behavior, but is not required.
[comment]This text will be commented out with HTML comments.[/comment]
[comment type="hidden"]This text will not even be sent to the browser.[/comment]
