aboutsummaryrefslogtreecommitdiff
path: root/dpi/vsource.c
AgeCommit message (Collapse)Author
2025-08-11Escape CSS % in printf formatRodrigo Arias Mallo
The % symbol causes a printf format for %; which fails in musl, causing the loop in dStr_vprintfa() to continue expading the buffer. Fixes: https://github.com/dillo-browser/dillo/issues/429
2024-07-18Improve line number style for HTML sourceRodrigo Arias Mallo
Make the background of line numbers appear as a single color and increase the contrast to improve readability. Also add a bit of space and a separator line between the numbers and the code itself.
2024-07-18Add anchors in line numbers for HTML source viewRodrigo Arias Mallo
They allow linking to an specific line in the source code. This would be useful to add to the bug meter view, so the user can quickly jump to the error line in the HTML source. Fixes: https://github.com/dillo-browser/dillo/issues/214
2015-05-27Made view-source dpi use CSS formatting (it's shorter and cleaner)Jorge Arellano Cid
BTW, is there a point in using a monospaced font? Besides it looks like code printing (which is good), a proportional-spaced font may be easier to read.
2015-05-26Fix view-source dpi to handle null characters correctlyJorge Arellano Cid
Although not allowed in text contexts, null characters should not stop/halt/fail dpi protocol, thus the patch. Test Example. Display a file with these contents: null padding^@^@ (two trailing null characters) and view source for it. Note that dillo will not _display_ the file completely correct, it will eat a char after each null, but this is not a problem in dpi nor dpip but in rendering, the cache gets it right. Adding code to correctly _display_ these anomalous pages is probably not worth the effort though.
2012-09-25vsource: make send_numbered_text consistent with send_html_textcorvid
2011-11-17never treat URI schemes case-sensitivelycorvid
2010-06-06vsource use a_Dpip_dsh_write_str when possiblecorvid
2010-06-06vsource page add title elementcorvid
2010-06-06vsource fix extraneous </pre> with empty source filecorvid
2010-04-05add id="dillo_vs" to view source pageJohannes Hofmann
This allows for custom styling of view source by adjusting ~/.dillo/style.css, e.g: #dillo_vs {background-color: orange !important}
2010-03-31use pre-wrap in vsourcecorvid
2010-03-14fix attr leakcorvid
2010-03-05view source: CR separates linescorvid
2010-03-01free dpip_tagcorvid
2010-02-27trim some spacescorvid
2010-02-24Fix: vsource html, fix entities display, indentation and removed \r check.Jorge Arellano Cid
Now long lines don't wrap (a side effect of PRE). If a wrapping version is preferred, it can be achieved by stuffing NBSP at the beginning of the line.
2010-02-23Handle vsource dpi inside a_Capi_open_url(); more orthogonality.Jorge Arellano Cid
Also added better error handling.
2010-02-17Implement the view source functionality as a dpiJorge Arellano Cid
2010-02-17Copy the hello dpi as a basis for the "view source" dpiJorge Arellano Cid