Fossil SCM
Updated the "Line Numbering" section of javascript.md to cover the new interactive line selection in Fossil 2.12.
Commit
f84d7a0e42fdec917548ef1fadc29019e9967c4493aab26195f45fc792c5d921
Parent
31c40509d4a41a7…
1 file changed
+14
-5
+14
-5
| --- www/javascript.md | ||
| +++ www/javascript.md | ||
| @@ -228,17 +228,26 @@ | ||
| 228 | 228 | |
| 229 | 229 | |
| 230 | 230 | ### <a id="ln"></a>Line Numbering |
| 231 | 231 | |
| 232 | 232 | When viewing source files, Fossil offers to show line numbers in some |
| 233 | -cases. Toggling them on and off is currently handled in JavaScript. | |
| 234 | -([Example][mainc].) | |
| 233 | +cases. ([Example][mainc].) Toggling them on and off is currently handled | |
| 234 | +in JavaScript, rather than forcing a page-reload via a button click. | |
| 235 | 235 | |
| 236 | 236 | _Workaround:_ Edit the URL to give the “`ln`” query parameter per [the |
| 237 | -`/file` docs](/help?cmd=/file), or provide a patch to reload the page | |
| 238 | -with this parameter included/excluded to implement the toggle via a | |
| 239 | -server round-trip. | |
| 237 | +`/file` docs](/help?cmd=/file). Alternately, someone sufficiently | |
| 238 | +interested could [provide a patch][cg] to add a `<noscript>` wrapped | |
| 239 | +HTML button that would reload the page with this parameter | |
| 240 | +included/excluded to implement the toggle via a server round-trip. | |
| 241 | + | |
| 242 | +As of Fossil 2.12, there is also a JavaScript-based interactive method | |
| 243 | +for selecting a range of lines by clicking the line numbers when they’re | |
| 244 | +visible, then copying the resulting URL to share your selection with | |
| 245 | +others. | |
| 246 | + | |
| 247 | +_Workaround:_ These interactive features absolutely require JavaScript. | |
| 248 | +The alternative is to manually edit the URL, per above. | |
| 240 | 249 | |
| 241 | 250 | [mainc]: https://fossil-scm.org/fossil/artifact?ln&name=87d67e745 |
| 242 | 251 | |
| 243 | 252 | |
| 244 | 253 | ### <a id="sxsdiff"></a>Side-by-Side Diff Mode |
| 245 | 254 |
| --- www/javascript.md | |
| +++ www/javascript.md | |
| @@ -228,17 +228,26 @@ | |
| 228 | |
| 229 | |
| 230 | ### <a id="ln"></a>Line Numbering |
| 231 | |
| 232 | When viewing source files, Fossil offers to show line numbers in some |
| 233 | cases. Toggling them on and off is currently handled in JavaScript. |
| 234 | ([Example][mainc].) |
| 235 | |
| 236 | _Workaround:_ Edit the URL to give the “`ln`” query parameter per [the |
| 237 | `/file` docs](/help?cmd=/file), or provide a patch to reload the page |
| 238 | with this parameter included/excluded to implement the toggle via a |
| 239 | server round-trip. |
| 240 | |
| 241 | [mainc]: https://fossil-scm.org/fossil/artifact?ln&name=87d67e745 |
| 242 | |
| 243 | |
| 244 | ### <a id="sxsdiff"></a>Side-by-Side Diff Mode |
| 245 |
| --- www/javascript.md | |
| +++ www/javascript.md | |
| @@ -228,17 +228,26 @@ | |
| 228 | |
| 229 | |
| 230 | ### <a id="ln"></a>Line Numbering |
| 231 | |
| 232 | When viewing source files, Fossil offers to show line numbers in some |
| 233 | cases. ([Example][mainc].) Toggling them on and off is currently handled |
| 234 | in JavaScript, rather than forcing a page-reload via a button click. |
| 235 | |
| 236 | _Workaround:_ Edit the URL to give the “`ln`” query parameter per [the |
| 237 | `/file` docs](/help?cmd=/file). Alternately, someone sufficiently |
| 238 | interested could [provide a patch][cg] to add a `<noscript>` wrapped |
| 239 | HTML button that would reload the page with this parameter |
| 240 | included/excluded to implement the toggle via a server round-trip. |
| 241 | |
| 242 | As of Fossil 2.12, there is also a JavaScript-based interactive method |
| 243 | for selecting a range of lines by clicking the line numbers when they’re |
| 244 | visible, then copying the resulting URL to share your selection with |
| 245 | others. |
| 246 | |
| 247 | _Workaround:_ These interactive features absolutely require JavaScript. |
| 248 | The alternative is to manually edit the URL, per above. |
| 249 | |
| 250 | [mainc]: https://fossil-scm.org/fossil/artifact?ln&name=87d67e745 |
| 251 | |
| 252 | |
| 253 | ### <a id="sxsdiff"></a>Side-by-Side Diff Mode |
| 254 |