Changeset 240


Ignore:
Timestamp:
Jan 9, 2011 10:21:30 PM (8 years ago)
Author:
APA
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mbutscher/work/WikidPadHelp/data/Anchors.wiki

    r178 r240  
    11++ Anchors
    22
    3 Anchors allow to jump to a particular position in a wiki page in edit and preview mode as well as in exported HTML pages.
     3Anchors allow to define a particular position within any hyperlinked page, such as a wiki page or any HTML page.
     4Given such anchor, a jump to that specific position may be invoked from anywhere else using an appropiate link.
    45
    5 Defining an anchor is done with:
     6Anchors for wiki pages are supported in both, edit and preview mode.
     7In exported HTML pages, anchors are supported using standard HTML-Syntax ("#...").
     8
     9
     10+++ Defining an Anchor
     11
     12Anchors are defined with the special anchor tag "anchor:", followed by the name of that anchor, as follows:
    613
    714anchor: here
    815
    9 The anchor tag must be alone on a line, no text before or after it. After "anchor:" you give the anchor a name which must consist only of letters A to Z (upper or lowercase), digits and underscore. It must not contain spaces, other special characters or non-English characters.
     16The anchor tag must be on a separate line by itself, no other text before or after it. After "anchor:" you give the anchor its name.
    1017
    11 To go to a particular anchor in a wiki word, append a ! and the anchor name to the wiki word (non-camelcase wiki words must be put in brackets), e.g.:
     18This name of the anchor must consist only of letters A to Z (upper or lowercase), digits and underscore. It must not contain spaces, other special characters or non-English characters.
     19
     20And such name of an anchor should be unique within the page in order to avoid ambiguities.
     21
     22
     23+++ Hyperlinking to an Anchor
     24
     25In order to go to a particular anchor in a wiki word, append a ! and the anchor name to the wiki word (non-camelcase wiki words must be put in brackets), e.g.:
    1226
    1327[Anchors]!here
    1428
    15 Clicking on the link moves the cursor after the anchor tag.
     29or
     30
     31TextFormatting!html
     32
     33Clicking on the link jumps to the page, and moves the cursor to the position following that anchor tag.
    1634
    1735
Note: See TracChangeset for help on using the changeset viewer.