Changes between Version 105 and Version 106 of TracLinks
- Timestamp:
- Jan 11, 2022, 9:21:54 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracLinks
v105 v106 143 143 === Link anchors 144 144 145 To create a link to a specific anchor in a page, use '#':145 To create a link to a specific anchor in a page, use `#`: 146 146 {{{ 147 147 [#Linkanchors Link anchors] or [[#Linkanchors|Link anchors]] … … 149 149 [#Linkanchors Link anchors] or [[#Linkanchors|Link anchors]] 150 150 151 To 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 151 157 Hint: 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. 152 158 153 To create a link to the first or last occurrence of a term on a page, use a ''pseudo anchor'' starting with '#/' or '#?':159 To create a link to the first or last occurrence of a term on a page, use a ''pseudo anchor'' starting with `#/` or `#?`: 154 160 {{{ 155 161 [#/Milestone first occurrence of Milestone] or … … 158 164 [#/Milestone first occurrence of Milestone] or 159 165 [#?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':166 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`: 161 167 {{{ 162 168 [#/Milestone/i first occurrence of Milestone or milestone] or … … 177 183 (Hint: The line numbers displayed in the source browser are links to anchors on the respective lines.) 178 184 179 Since such links become outdated when the file changes, it can be useful to link using a '#/'pseudo anchor instead:185 Since such links become outdated when the file changes, it can be useful to link using a `#/` pseudo anchor instead: 180 186 {{{ 181 187 [trac:source:trunk/trac/wiki/api.py#/IWikiSyntaxProvider IWikiSyntaxProvider] or