Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch syntax-hl-with-linenumbers Excluding Merge-Ins
This is equivalent to a diff from f6e63530 to 6ead94ab
2019-09-27
| ||
15:45 | fossil add: fixed leak of ignore-glob prompt string. ... (check-in: e5e09407 user: stephan tags: trunk) | |
08:48 | Initial work on unified "--" flag support, as requested in https://fossil-scm.org/forum/forumpost/64acc6b653. There's still lots to do here. ... (check-in: d8ebbd76 user: stephan tags: double-dash-flag) | |
2019-09-26
| ||
23:41 |
Adds syntax-hl boolean option, fixes file extension retrieval.
The addition of the syntax-hl boolean allows fossil to detect at the behest of the user that a syntax highlighting system that will handle line numbering is being used in cooperation with fossil such that fossil need not try to do line numbering, selection, highlighting, etc, itself. The file extension retrieval is now done with no use of extra or one off queries. ... (Closed-Leaf check-in: 6ead94ab user: lmartin92 tags: syntax-hl-with-linenumbers) | |
23:36 | Create new branch named "syntax-hl-with-numbering" ... (Closed-Leaf check-in: 6f82d2c1 user: lmartin92 tags: syntax-hl-with-numbering) | |
17:58 | Remove the discussion of the "close" command from the fiveminutes.wiki document as the "close" command is not really needed, is rarely used, and serves no purpose in the document but to confuse the reader. ... (check-in: f6e63530 user: drh tags: trunk) | |
17:36 | Fix a typo in the CGI extension documentation. ... (check-in: b4ac00d8 user: drh tags: trunk) | |
Changes to src/db.c.
︙ | ︙ | |||
3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 | /* ** SETTING: web-browser width=30 ** A shell command used to launch your preferred ** web browser when given a URL as an argument. ** Defaults to "start" on windows, "open" on Mac, ** and "firefox" on Unix. */ /* ** Look up a control setting by its name. Return a pointer to the Setting ** object, or NULL if there is no such setting. ** ** If allowPrefix is true, then the Setting returned is the first one for ** which zName is a prefix of the Setting name. | > > > > > | 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 | /* ** SETTING: web-browser width=30 ** A shell command used to launch your preferred ** web browser when given a URL as an argument. ** Defaults to "start" on windows, "open" on Mac, ** and "firefox" on Unix. */ /* ** SETTING: syntax-hl boolean default=off ** This is a boolean set such that themes can use TH1 code ** to detect if they should enable syntax highlighting. */ /* ** Look up a control setting by its name. Return a pointer to the Setting ** object, or NULL if there is no such setting. ** ** If allowPrefix is true, then the Setting returned is the first one for ** which zName is a prefix of the Setting name. |
︙ | ︙ |
Changes to src/info.c.
︙ | ︙ | |||
2336 2337 2338 2339 2340 2341 2342 | if( zLn==0 || atoi(zLn)==0 ){ style_submenu_checkbox("ln", "Line Numbers", 0, 0); } blob_to_utf8_no_bom(&content, 0); zMime = mimetype_from_content(&content); @ <blockquote> if( zMime==0 ){ | | | | < < < | | < < < < | | 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 | if( zLn==0 || atoi(zLn)==0 ){ style_submenu_checkbox("ln", "Line Numbers", 0, 0); } blob_to_utf8_no_bom(&content, 0); zMime = mimetype_from_content(&content); @ <blockquote> if( zMime==0 ){ const char *z, *zFileName, *zExt, *zLanguage, *tmp; z = blob_str(&content); zFileName = blob_str(&downloadName); zExt = (tmp = strrchr(zFileName, '.')) == NULL ? "" : tmp+1; zLanguage = strrchr(zFileName, '.') == NULL ? "" : "language-"; if( zLn && (db_get_boolean("syntax-hl", 0) == 0) ) { output_text_with_line_numbers(z, zLn); }else{ @ <pre> @ <code class="%s(zLanguage)%s(zExt)">%h(z)</code> @ </pre> } }else if( strncmp(zMime, "image/", 6)==0 ){ @ <p>(file is %d(blob_size(&content)) bytes of image data)</i></p> @ <p><img src="%R/raw/%s(zUuid)?m=%s(zMime)"></p> style_submenu_element("Image", "%R/raw/%s?m=%s", zUuid, zMime); }else{ |
︙ | ︙ |