Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When displaying documents, provide class hints about the language of the document to syntax highlighter extensions. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
74b538f614a33405003615e064167e2e |
| User & Date: | drh 2019-09-03 20:19:25.689 |
Context
|
2019-09-03
| ||
| 20:20 | Include the "js" property in the configuration export for skins. ... (check-in: 498fc87ac1 user: drh tags: trunk) | |
| 20:19 | When displaying documents, provide class hints about the language of the document to syntax highlighter extensions. ... (check-in: 74b538f614 user: drh tags: trunk) | |
| 20:17 | Improvements to /vdiff. Provide the branch= query parameter. In the name decoder, all "merge-in:BRANCH" to mean the most recent merge-in to BRANCH from its parent. Provide "Diff" links for branches that show all changes since the most recent merge-in. ... (check-in: e632a092a8 user: drh tags: trunk) | |
|
2019-09-02
| ||
| 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: f3b9171498 user: wyoung tags: code-in-pre) | |
Changes
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 2360 2361 2362 2363 |
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>
|
| ︙ | ︙ |