Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

MarkupTricks


Commenting out long blocks on a page

Also known as: multiline comments

If you want to put many lines of comments on a page that are only visible in edit view and that can include directives that you don't want processed, use the "if false" trick:

The (:markup:)...(:markupend:) directive works here:

this text will be visible
(:if false:)
here is some
text
(:searchbox:)
with other directives
(:if:)
but the intervening lines will only show in edit view

this text will be visible but the intervening lines will only show in edit view

Spaceless block preformat

How can I do spaceless block preformat - that is, preformat multiple lines without prefixing each line with a single space? For instance, I want to display a code block in the wiki.

The answer is our old friend, [=...=], but with a space on the line before the opening bracket. Here is an example:

The (:markup:)...(:markupend:) directive DOES NOT work here:

 [= 
int main(int argc, char** argv)
{
  time_t epoch;
  char sdate[MAXS];
  struct tm* tmP;
  if (argc<2) {
    USAGE(NULL);
  }
} =]
  
int main(int argc, char** argv)
{
  time_t epoch;
  char sdate[MAXS];
  struct tm* tmP;
  if (argc<2) {
    USAGE(NULL);
  }
} 
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.12 00.05 MarkupToHTML begin
 3: 00.13 00.05 MarkupToHTML begin
 4: 00.13 00.06 MarkupToHTML end
 5: 00.13 00.06 MarkupToHTML begin
 6: 00.14 00.06 MarkupToHTML end
 7: 00.16 00.08 MarkupToHTML end
 8: 00.17 00.09 MarkupToHTML begin
 9: 00.19 00.11 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
10: 00.21 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls end
11: 00.23 00.14 MarkupToHTML end
12: 00.23 00.14 MarkupToHTML begin
13: 00.24 00.15 MarkupToHTML end
14: 00.24 00.16 now