Edgewall Software

Changes between Version 105 and Version 106 of TracLinks


Ignore:
Timestamp:
Jan 11, 2022, 9:21:54 AM (2 years ago)
Author:
Clemens
Comment:

updated section "Link anchors" to explain that anchors are created with [=#anchor]

Legend:

Unmodified
Added
Removed
Modified
  • TracLinks

    v105 v106  
    143143=== Link anchors
    144144
    145 To create a link to a specific anchor in a page, use '#':
     145To create a link to a specific anchor in a page, use `#`:
    146146{{{
    147147 [#Linkanchors Link anchors] or [[#Linkanchors|Link anchors]]
     
    149149  [#Linkanchors Link anchors] or [[#Linkanchors|Link anchors]]
    150150
     151To create an anchor in a page, use `[=#...]`:
     152{{{
     153 [=#myanchor my anchor] or empty form [=#myanchor]
     154}}}
     155 [=#myanchor my anchor] or empty form [=#myanchor]
     156
    151157Hint: when you hover your mouse over the title of a section, a '¶' character will be displayed. This is a link to that specific section and you can use this to copy the `#...` part inside a relative link to an anchor.
    152158
    153 To create a link to the first or last occurrence of a term on a page, use a ''pseudo anchor'' starting with '#/' or '#?':
     159To create a link to the first or last occurrence of a term on a page, use a ''pseudo anchor'' starting with `#/` or `#?`:
    154160{{{
    155161 [#/Milestone first occurrence of Milestone] or
     
    158164 [#/Milestone first occurrence of Milestone] or
    159165 [#?Milestone last occurrence of Milestone]
    160 This will also highlight all other matches on the linked page. By default only case sensitive matches are considered. To include case insensitive matches append '/i':
     166This will also highlight all other matches on the linked page. By default only case sensitive matches are considered. To include case insensitive matches append `/i`:
    161167{{{
    162168 [#/Milestone/i first occurrence of Milestone or milestone] or
     
    177183(Hint: The line numbers displayed in the source browser are links to anchors on the respective lines.)
    178184
    179 Since such links become outdated when the file changes, it can be useful to link using a '#/' pseudo anchor instead:
     185Since such links become outdated when the file changes, it can be useful to link using a `#/` pseudo anchor instead:
    180186{{{
    181187 [trac:source:trunk/trac/wiki/api.py#/IWikiSyntaxProvider IWikiSyntaxProvider] or