Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch code-in-pre Excluding Merge-Ins
This is equivalent to a diff from ab2b8de8 to f3b91714
2019-09-03
| ||
20:19 | When displaying documents, provide class hints about the language of the document to syntax highlighter extensions. ... (check-in: 74b538f6 user: drh tags: trunk) | |
2019-09-02
| ||
23:26 | Added a new section to www/defcsp.md, "Serving Files Within the Limits". It pulls together a bit of info already in the document on the topic and then expands it considerably. The overall message is, "You probably don't have to override the default CSP." ... (check-in: 58883ecc user: wyoung tags: trunk) | |
19:54 | In /artifact and similar pages, put HTML code tag inside pre with class="language-zExt" where zExt is the extension from the artifact's file name, if any. This allows JS code highlighting plugins to style such pre blocks automatically based on file name extension. ... (Closed-Leaf check-in: f3b91714 user: wyoung tags: code-in-pre) | |
2019-08-31
| ||
18:22 | Minor typo correction in comment---no functional change. ... (check-in: ab2b8de8 user: andybradford tags: trunk) | |
18:09 | Avoid warning about extra call to db_end_transaction() by returning at the end of a complete block. ... (check-in: 7b2350a8 user: andybradford tags: trunk) | |
Changes to src/info.c.
︙ | ︙ | |||
2286 2287 2288 2289 2290 2291 2292 | 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 ){ | | > > > > > > > > > > | 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 | 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; z = blob_str(&content); zFileName = db_text(0, "SELECT name FROM mlink, filename" " WHERE filename.fnid=mlink.fnid" " AND mlink.fid=%d", rid); zExt = zFileName ? strrchr(zFileName, '.') : 0; if( zLn ){ output_text_with_line_numbers(z, zLn); }else if( zExt && zExt[1] ){ @ <pre> @ <code class="language-%s(zExt+1)">%h(z)</code> @ </pre> }else{ @ <pre> @ %h(z) @ </pre> } }else if( strncmp(zMime, "image/", 6)==0 ){ @ <p>(file is %d(blob_size(&content)) bytes of image data)</i></p> |
︙ | ︙ |