7.2 Text markup: fonts and links
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Source Documentation Version 2
        • Wiki notation
          • Text markup: fonts and links
            • Emphasizing text
            • Inline code
            • Links

7.2.1 Emphasizing text

Text emphasis is a combination of old plaintext conventions in Usenet and E-mail and the doxygen version of markdown. Table 1 shows the font-changing constructions. The phrase limited context means that

  • The opening * or _ must be preceeded by white space or a character from the set <{([,:; and must be followed by an alphanumerical character.
  • The closing * or _ may not be followed by an alphanumerical character and may not be preceeded by white space or a character from the set ({[<=+-\@.
  • The scope of these operations is always limited to the identified structure (paragraph, list item, etc.)

Note that =<identifier>= is limited to a an identifier, such as a file name, XML name, etc. Identifiers must start and end with an alphanumerical character, while characters from the set .-/: may appear internally. Note that this set explicitly does not allow for white space in code spans delimited by a single =. This markup is specifically meant to deal with code that is either not Prolog code or invalid Prolog code. Valid Prolog code should use the backtick as described in section 7.2.2.

*bold*Typeset text in bold for limited content (see running text).
*|bold|*Typeset text in bold. Content can be long.
_emphasize_Typeset text as emphasize for limited content (see running text).
_|emphasize|_Typeset text as emphasize. Content can be long.
=code=Typeset text fixed font for identifiers (see running text).
=|code|=Typeset text fixed font. Content can be long.
WordCapitalised words that appear as argument-name are written in Italic
Table 1 : Wiki constructs to change the font